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

Static Package Functions

static void DriftFileReadError (this LogBase log, string host, string file, Exception e)
 
static void DriftReadError (this LogBase log, string host, string file)
 
static void MultiplePeersFound (this LogBase log, string host, string peerIp)
 
static void NoSyncing (this LogBase log, string host)
 
static void NtpValueError (this LogBase log, string name)
 
static void OpenNtpUnsynced (this LogBase log)
 
static void PeerNotFound (this LogBase log, string host, string peerIp)
 
static void Syncing (this LogBase log, string host, string peer)
 

Detailed Description

Definition at line 34 of file LogExtensions.cs.

Member Function Documentation

static void Ntp.Analyzer.Import.LogExtensions.DriftFileReadError ( this LogBase  log,
string  host,
string  file,
Exception  e 
)
inlinestaticpackage

Definition at line 36 of file LogExtensions.cs.

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

37  {
38  log.WriteLine(
39  $"Could not read drift file {file} on host {host}: {e.Message}",
40  Severity.Warn);
41 
42  log.WriteLine(e, Severity.Trace);
43  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.DriftReadError ( this LogBase  log,
string  host,
string  file 
)
inlinestaticpackage

Definition at line 45 of file LogExtensions.cs.

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

46  {
47  log.WriteLine(
48  $"Could not read content of drift file {file} on host {host}.",
49  Severity.Warn);
50  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.MultiplePeersFound ( this LogBase  log,
string  host,
string  peerIp 
)
inlinestaticpackage

Definition at line 52 of file LogExtensions.cs.

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

53  {
54  log.WriteLine(
55  $"Could not import host stats from {host}. Found more than one peer with IP {peerIp} in database.",
56  Severity.Warn);
57  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.NoSyncing ( this LogBase  log,
string  host 
)
inlinestaticpackage

Definition at line 59 of file LogExtensions.cs.

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

60  {
61  log.WriteLine(
62  $"{host} is not syncing. Adjust clock to start sync.",
63  Severity.Warn);
64  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.NtpValueError ( this LogBase  log,
string  name 
)
inlinestaticpackage

Definition at line 66 of file LogExtensions.cs.

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

67  {
68  log.WriteLine(
69  $"Received an unknown value from NTP Daemon: {name}",
70  Severity.Warn);
71  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.OpenNtpUnsynced ( this LogBase  log)
inlinestaticpackage

Definition at line 73 of file LogExtensions.cs.

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

74  {
75  log.WriteLine(
76  "OpenNTP clock is unsynced.",
77  Severity.Info);
78  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.PeerNotFound ( this LogBase  log,
string  host,
string  peerIp 
)
inlinestaticpackage

Definition at line 80 of file LogExtensions.cs.

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

81  {
82  log.WriteLine(
83  $"Could not import host stats from {host}. Peer with IP {peerIp} was not found in database.",
84  Severity.Warn);
85  }

Here is the call graph for this function:

static void Ntp.Analyzer.Import.LogExtensions.Syncing ( this LogBase  log,
string  host,
string  peer 
)
inlinestaticpackage

Definition at line 87 of file LogExtensions.cs.

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

88  {
89  log.WriteLine(
90  $"{host} is syncing to {peer}.",
91  Severity.Info);
92  }

Here is the call graph for this function:


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