KissLogApiListener

namespace KissLog.Apis.v1.Listeners
{
    public class KissLogApiListener : ILogListener
    {
        public KissLogApiListener(Application application);

        public bool UseAsync { get; set; }
        public string ApiUrl { get; set; }
    }
}

KissLogApiListener saves the logs to KissLog.net cloud / on-premises.

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

Constructor

KissLogApiListener(Application application)

Specifies the KissLog.net application identifier (can be found on the KissLog.net application configuration page).

Properties

string ApiUrl

(default: "https://api.kisslog.net/") - the KissLog.net on-premises endpoint URL

bool UseAsync

(default: true) - determines if the REST request should be made Synchronous or Asynchronous


Related references