Can’t see any logs

If you can’t see any logs on kisslog.net, please follow these troubleshooting steps:

Step 1: Double check the install instructions

Make sure that the install instructions have been applied correctly.

Make sure that you register the KissLogApiListener listener.

protected void Application_Start()
{
    KissLogConfiguration.Listeners.Add(new KissLogApiListener(
        new KissLog.Apis.v1.Auth.Application("KissLog.OrganizationId", "KissLog.ApplicationId")
    ));
}

Step 2: Check the Api Keys

Make sure that you use the correct application keys.

You can find Api Keys under the application configuration page.

Step 3: Test the internet connection

Make sure that your computer (or the server hosting the application) can reach the https://api.kisslog.net endpoint.

Step 4: Check the internal logs

Additional details can be found in the KissLog internal logs.

private void Application_Start()
{
    KissLogConfiguration.InternalLog = (string message) =>
    {
        Debug.WriteLine(message);
    };
}
POST https://api.kisslog.net/api/logs/v1.0/createRequestLog begin
POST https://api.kisslog.net/api/logs/v1.0/createRequestLog 500 ERROR
    An error occurred while sending the request.
    System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'api.kisslog.net'
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KissLog.Apis.v1.Apis.ApiClient.<PostAsJsonAsync>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at KissLog.Apis.v1.Apis.TryCatchApiClient.<PostAsJsonAsync>d__2`1.MoveNext()

Console applications

For non-web applications, in addition to the steps above, please ensure the following:

You notify the kisslog listeners using Logger.NotifyListeners(logger).

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
static void Main(string[] args)
{
    ConfigureKissLog();

    ILogger logger = new Logger(url: "Main");

    try
    {
        logger.Info("Executing main");
    }
    catch(Exception ex)
    {
        logger.Error(ex);
        throw;
    }
    finally
    {
        Logger.NotifyListeners(logger);
    }
}

KissLog.net on-premises

If you are using KissLog.net on-premises, make sure that you provide the URL to your KissLog.Backend instance.

protected void Application_Start()
{
    KissLogConfiguration.Listeners.Add(new KissLogApiListener(
        new KissLog.Apis.v1.Auth.Application("KissLog.OrganizationId", "KissLog.ApplicationId")
    )
    {
        ApiUrl = "http://api.my-kisslog.net"
    });
}

Didn’t help?

Open a ticket on GitHub issues.