Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
116 lines (85 sloc) 2.63 KB

Console applications

These steps describe how to install and configure KissLog for a Console application.

  1. Install NuGet Packages
PM> Install-Package KissLog
PM> Install-Package KissLog.Apis.v1
  1. Update Program.cs

Register KissLog.net cloud listener.

Replace OrganizationID and ApplicationID with Api Key values from the application configuration page.

Make sure you specify UseAsync = false (line 21).

  1. Use the ILogger

We log the Foo() method by using a try-catch-finally block to simulate the BEGIN and the END of the action.

Testing

To test the KissLog configuration, run the Console application. The Foo() request should be visible on KissLog.net.

Foo() details

Foo() details

Foo() logs

Foo() logs

You can’t perform that action at this time.