NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Common.System.ProcessInfo Class Reference

Static Public Member Functions

static LogBase CreateSystemLog (string name)

Static Public Attributes

static int ProcessId

Detailed Description

Definition at line 28 of file ProcessInfo.cs.

Member Function Documentation

static LogBase Ntp.Common.System.ProcessInfo.CreateSystemLog ( string  name)

Definition at line 34 of file ProcessInfo.cs.

Referenced by Ntp.Common.Log.LogFactory.CreateSysLog().

35  {
36  return Environment.OSVersion.Platform == PlatformID.Unix
37  ? new SysLog(name, Severity.Notice)
38  : (LogBase) new EventLog("NTP Analyzer", Severity.Notice);
39  }

Here is the caller graph for this function:

Member Data Documentation

int Ntp.Common.System.ProcessInfo.ProcessId
Initial value:
=> Environment.OSVersion.Platform == PlatformID.Unix
? Syscall.getpid()
: global::System.Diagnostics.Process.GetCurrentProcess().Id

Definition at line 30 of file ProcessInfo.cs.

Referenced by Ntp.Analyzer.Cli.Program.Main().

The documentation for this class was generated from the following file: