Skip to content

Implementation

Thev2Andy edited this page Mar 22, 2024 · 6 revisions

How to implement PowerLog?

Important

The wiki is no longer being maintained, and is now kept as historical reference. (And will be removed in the future.)

Implementing PowerLog into your VS project:

  1. Get the PowerLog binaries, either by compiling it yourself / downloading it from the Releases tab, or aditionally, get the CSPROJ files.

PowerLog Binaries

  1. Open your VS project, go to Dependencies -> Add Project Reference -> Browse and select the PowerLog DLL. This step may differ depending on what you're using.

PowerLog Dependency

  1. To be able to use PowerLog in your class, add the namespace.
using PowerLog;
  1. You might want to configure PowerLog's LogSession / Logger system, so it's probably a good idea to see the API Reference.

By default, there is no visual feedback of the logging system, to do that you can subscribe to the OnLog event, and depending on your preference, you might want to turn off writing logs to the PowerLog log file.

Clone this wiki locally