public void Initialize(bool beforeInit) { MachineName = ChoSystemInfo.MachineName; AppDomainName = ChoSystemInfo.AppDomainName; ProcessId = ChoSystemInfo.ProcessId; ProcessName = ChoSystemInfo.ProcessName; HostName = ChoSystemInfo.HostName; ApplicationName = ChoSystemInfo.ApplicationName; ThreadId = ChoSystemInfo.GetThreadId(); ThreadName = ChoSystemInfo.GetThreadName(); Enrich(ChoStackTrace.GetStackFrame()); }
public bool Initialize(bool beforeFieldInit, object state) { MachineName = ChoSystemInfo.MachineName; AppDomainName = ChoApplication.AppDomainName; ProcessId = ChoApplication.ProcessId.ToString(); ProcessName = ChoApplication.ProcessFilePath; HostName = ChoSystemInfo.HostName; ApplicationName = ChoGlobalApplicationSettings.Me.ApplicationName; ThreadId = ChoApplication.GetThreadId().ToString(); ThreadName = ChoApplication.GetThreadName(); Enrich(ChoStackTrace.GetStackFrame()); return(false); }
public static void Log(ChoLogEntry log) { Log(ChoStackTrace.GetStackFrame(typeof(ChoLogger)), log); }