Definition at line 28 of file LogFactory.cs.
static void Ntp.Common.Log.LogFactory.Cleanup |
( |
| ) |
|
|
inlinestatic |
static void Ntp.Common.Log.LogFactory.Close |
( |
| ) |
|
|
inlinestatic |
Definition at line 39 of file LogFactory.cs.
41 foreach (var log
in Logs)
static readonly List< LogBase > Logs
static ActivityLog Ntp.Common.Log.LogFactory.CreateActivityLog |
( |
| ) |
|
|
inlinestatic |
static LogGroup Ntp.Common.Log.LogFactory.CreateErrorLog |
( |
string |
name | ) |
|
|
inlinestatic |
static LogGroup Ntp.Common.Log.LogFactory.CreateGroupLog |
( |
| ) |
|
|
inlinestatic |
Definition at line 75 of file LogFactory.cs.
77 var group =
new LogGroup();
79 foreach (var config
in configs)
static LogBase CreateLogInternal(ILogConfiguration config)
static readonly List< LogBase > Logs
Definition at line 108 of file LogFactory.cs.
References Ntp.Common.Log.ILogConfiguration.File, Ntp.Common.Log.ILogConfiguration.LogType, Ntp.Common.Log.ILogConfiguration.ShowSeverity, Ntp.Common.Log.ILogConfiguration.ShowTimestamp, Ntp.Common.Log.ILogConfiguration.Threshold, and Ntp.Common.Log.ILogConfiguration.TimeFormat.
110 switch (config.LogType)
114 return new ConsoleLog(config.Threshold, config.TimeFormat)
116 ShowSeverity = config.ShowSeverity,
117 ShowTimeStamp = config.ShowTimestamp
124 return new FileLog(config.File, config.Threshold, config.TimeFormat)
126 ShowSeverity = config.ShowSeverity,
127 ShowTimeStamp = config.ShowTimestamp
130 throw new ArgumentOutOfRangeException(nameof(config));
static string ApplicationName
static LogBase Ntp.Common.Log.LogFactory.CreateSysLog |
( |
string |
name | ) |
|
|
inlinestatic |
static void Ntp.Common.Log.LogFactory.Resume |
( |
| ) |
|
|
inlinestatic |
static void Ntp.Common.Log.LogFactory.Suspend |
( |
| ) |
|
|
inlinestatic |
string Ntp.Common.Log.LogFactory.ApplicationName |
|
static |
readonly List<LogBase> Ntp.Common.Log.LogFactory.Logs = new List<LogBase>() |
|
staticprivate |
The documentation for this class was generated from the following file: