public LogEntriesListener() { _logEntries = new AsyncLogger(); if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.Token"])) { Token = ConfigurationManager.AppSettings["LogEntries.Token"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.AccountKey"])) { AccountKey = ConfigurationManager.AppSettings["LogEntries.AccountKey"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.Location"])) { Location = ConfigurationManager.AppSettings["LogEntries.Location"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.ImmediateFlush"])) { ImmediateFlush = bool.Parse(ConfigurationManager.AppSettings["LogEntries.ImmediateFlush"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.Debug"])) { Debug = bool.Parse(ConfigurationManager.AppSettings["LogEntries.Debug"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.UseHttpPut"])) { UseHttpPut = bool.Parse(ConfigurationManager.AppSettings["LogEntries.UseHttpPut"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.UseSsl"])) { UseSsl = bool.Parse(ConfigurationManager.AppSettings["LogEntries.UseSsl"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.UseJson"])) { UseJson = bool.Parse(ConfigurationManager.AppSettings["LogEntries.UseJson"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.IsUsingDataHub"])) { IsUsingDataHub = bool.Parse(ConfigurationManager.AppSettings["LogEntries.IsUsingDataHub"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.DataHubAddr"])) { DataHubAddr = ConfigurationManager.AppSettings["LogEntries.DataHubAddr"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.DataHubPort"])) { DataHubPort = int.Parse(ConfigurationManager.AppSettings["LogEntries.DataHubPort"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.LogHostname"])) { LogHostname = bool.Parse(ConfigurationManager.AppSettings["LogEntries.LogHostname"]); } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.HostName"])) { HostName = ConfigurationManager.AppSettings["LogEntries.HostName"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.LogID"])) { LogID = ConfigurationManager.AppSettings["LogEntries.LogID"]; } if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["LogEntries.LogPattern"])) { LogPattern = ConfigurationManager.AppSettings["LogEntries.LogPattern"]; } }
public LogentriesListener(string token) { logentriesAsync = new AsyncLogger(); Token = token; }
public LogentriesTarget() { logentriesAsync = new AsyncLogger(); }
public LogentriesAppender() { logentriesAsync = new AsyncLogger(); }
private Logger() { _writer = new AsyncLogger(); _writer.setUseSsl(true); _writer.setUseHttpPut(false); }