Exemple #1
0
        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());
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public static void Log(ChoLogEntry log)
 {
     Log(ChoStackTrace.GetStackFrame(typeof(ChoLogger)), log);
 }