NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Process.Log.LogExtensions Class Reference

Static Package Functions

static void AddErrors (this LogBase log, IEnumerable< string > errors)
 
static void ClusterError (this LogBase log, Exception e)
 
static void ClusterReady (this LogBase log, NodeConfiguration node)
 
static void ConfigFile (this LogBase log, string file)
 
static void DatabaseError (this LogBase log, Exception e)
 
static void HostImportError (this LogBase log, Exception e)
 
static void HostNameNotFound (this LogBase log, string ip, Exception e)
 
static void HostNotFound (this LogBase log, int hostId)
 
static void InitializationError (this LogBase log, Exception e)
 
static void InstanceName (this LogBase log, string name)
 
static void JobInitEnd (this LogBase log)
 
static void JobInitStart (this LogBase log)
 
static void KnownServer (this LogBase log, int id, string name)
 
static void ListenerError (this LogBase log, Exception e)
 
static void ListenerReady (this LogBase log, Listener listener)
 
static void NewHost (this LogBase log, HostConfiguration server, IPAddress ip)
 
static void NewPeer (this LogBase log, AssociationEntry entry)
 
static void NoConfig (this LogBase log, string file)
 
static void OpenNtpConfigError (this LogBase log)
 
static void PeerImportError (this LogBase log, Exception e)
 
static void PeerIpAmbiguous (this LogBase log, AssociationEntry entry)
 
static void PeerIpNotFound (this LogBase log, AssociationEntry entry)
 
static void PidFileError (this LogBase log, Exception e)
 
static void ProcessId (this LogBase log, int pid)
 
static void SchedulerError (this LogBase log, Exception e)
 
static void Starting (this LogBase log, string version)
 
static void TableError (this LogBase log, Exception e)
 
static void UserId (this LogBase log, uint userId)
 
static void UserIdError (this LogBase log, uint userId)
 

Detailed Description

Definition at line 32 of file LogExtensions.cs.

Member Function Documentation

static void Ntp.Analyzer.Process.Log.LogExtensions.AddErrors ( this LogBase  log,
IEnumerable< string >  errors 
)
inlinestaticpackage

Definition at line 34 of file LogExtensions.cs.

35  {
36  foreach (string error in errors)
37  log.WriteLine(error, Severity.Error);
38  }
static void Ntp.Analyzer.Process.Log.LogExtensions.ClusterError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 40 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

41  {
42  log.WriteLine("Error during initialization of cluster node.", Severity.Error);
43  log.WriteLine(e);
44  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.ClusterReady ( this LogBase  log,
NodeConfiguration  node 
)
inlinestaticpackage

Definition at line 46 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

47  {
48  log.WriteLine($"Requesting to cluster {node.Address}", Severity.Notice);
49  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.ConfigFile ( this LogBase  log,
string  file 
)
inlinestaticpackage

Definition at line 51 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

52  {
53  log.WriteLine($"Using configuration {file}", Severity.Notice);
54  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.DatabaseError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 56 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

57  {
58  log.WriteLine("Error during initialization of database.", Severity.Error);
59  log.WriteLine(e);
60  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.HostImportError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 62 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

63  {
64  log.WriteLine($"Could not import host data {e.Message}", Severity.Warn);
65  log.WriteLine(e, Severity.Trace);
66  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.HostNameNotFound ( this LogBase  log,
string  ip,
Exception  e 
)
inlinestaticpackage

Definition at line 191 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

192  {
193  log.WriteLine($"Could not find host name for IP {ip}.", Severity.Info);
194  log.WriteLine(e, Severity.Debug);
195  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.HostNotFound ( this LogBase  log,
int  hostId 
)
inlinestaticpackage

Definition at line 68 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

69  {
70  log.WriteLine($"Host with ID {hostId} does not exists in database.", Severity.Warn);
71  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.InitializationError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 73 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

74  {
75  log.WriteLine($"Cannot create logs: {e.Message}", Severity.Error);
76  log.WriteLine(e);
77  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.InstanceName ( this LogBase  log,
string  name 
)
inlinestaticpackage

Definition at line 79 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

80  {
81  log.WriteLine($"Instance named {name}", Severity.Notice);
82  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.JobInitEnd ( this LogBase  log)
inlinestaticpackage

Definition at line 84 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

85  {
86  log.WriteLine("All jobs initialized.", Severity.Debug);
87  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.JobInitStart ( this LogBase  log)
inlinestaticpackage

Definition at line 89 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

90  {
91  log.WriteLine("Initializing jobs.", Severity.Info);
92  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.KnownServer ( this LogBase  log,
int  id,
string  name 
)
inlinestaticpackage

Definition at line 94 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

95  {
96  log.WriteLine(
97  $"Found known time server {name} with id {id} in list.",
98  Severity.Info);
99  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.ListenerError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 101 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

102  {
103  log.WriteLine("Error during initialization of command channels.", Severity.Warn);
104  log.WriteLine(e);
105  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.ListenerReady ( this LogBase  log,
Listener  listener 
)
inlinestaticpackage

Definition at line 107 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

108  {
109  log.WriteLine($"Opening command channel on {listener}", Severity.Notice);
110  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.NewHost ( this LogBase  log,
HostConfiguration  server,
IPAddress  ip 
)
inlinestaticpackage

Definition at line 112 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

113  {
114  log.WriteLine(
115  $"Created a new host in database ID {server.HostId} with name {server.ServerName} and IP {ip}.",
116  Severity.Info);
117  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.NewPeer ( this LogBase  log,
AssociationEntry  entry 
)
inlinestaticpackage

Definition at line 119 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

120  {
121  log.WriteLine(
122  $"Created a new peer in database with name {entry.Remote} and IP {entry.Remote}.",
123  Severity.Info);
124  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.NoConfig ( this LogBase  log,
string  file 
)
inlinestaticpackage

Definition at line 126 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

127  {
128  log.WriteLine($"Cannot find configuration file {file}", Severity.Error);
129  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.OpenNtpConfigError ( this LogBase  log)
inlinestaticpackage

Definition at line 131 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

132  {
133  log.WriteLine("Traffic data collection is not supported for OpenNTP.", Severity.Warn);
134  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.PeerImportError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 136 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

137  {
138  log.WriteLine($"Could not import peer data {e.Message}", Severity.Warn);
139  log.WriteLine(e, Severity.Trace);
140  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.PeerIpAmbiguous ( this LogBase  log,
AssociationEntry  entry 
)
inlinestaticpackage

Definition at line 142 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

143  {
144  log.WriteLine(
145  $"Ambiguous peer IP {entry.Remote}. Multiple occurrences found in database.",
146  Severity.Warn);
147  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.PeerIpNotFound ( this LogBase  log,
AssociationEntry  entry 
)
inlinestaticpackage

Definition at line 149 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

150  {
151  log.WriteLine($"Peer with IP {entry.Remote} does not exists in database.", Severity.Warn);
152  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.PidFileError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 154 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

155  {
156  log.WriteLine($"Cannot create pid file. {e.Message}", Severity.Warn);
157  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.ProcessId ( this LogBase  log,
int  pid 
)
inlinestaticpackage

Definition at line 159 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

160  {
161  log.WriteLine($"Running with process ID {pid}", Severity.Notice);
162  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.SchedulerError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 164 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

165  {
166  log.WriteLine("Error during initialization of scheduler.", Severity.Error);
167  log.WriteLine(e);
168  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.Starting ( this LogBase  log,
string  version 
)
inlinestaticpackage

Definition at line 170 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

171  {
172  log.WriteLine($"NTP Analyzer {version} started.", Severity.Notice);
173  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.TableError ( this LogBase  log,
Exception  e 
)
inlinestaticpackage

Definition at line 175 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

176  {
177  log.WriteLine("Could not populate tables with data.", Severity.Error);
178  log.WriteLine(e);
179  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.UserId ( this LogBase  log,
uint  userId 
)
inlinestaticpackage

Definition at line 181 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

182  {
183  log.WriteLine($"Running under user id {userId}", Severity.Info);
184  }

Here is the call graph for this function:

static void Ntp.Analyzer.Process.Log.LogExtensions.UserIdError ( this LogBase  log,
uint  userId 
)
inlinestaticpackage

Definition at line 186 of file LogExtensions.cs.

References Ntp.Common.Log.LogBase.WriteLine().

187  {
188  log.WriteLine($"Failed to set user id {userId}", Severity.Warn);
189  }

Here is the call graph for this function:


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