23 using System.Collections.Generic;
30 namespace Ntp.Analyzer.Process.Log
36 foreach (
string error
in errors)
37 log.WriteLine(error,
Severity.Error);
70 log.
WriteLine($
"Host with ID {hostId} does not exists in database.",
Severity.Warn);
97 $
"Found known time server {name} with id {id} in list.",
103 log.
WriteLine(
"Error during initialization of command channels.",
Severity.Warn);
115 $
"Created a new host in database ID {server.HostId} with name {server.ServerName} and IP {ip}.",
122 $
"Created a new peer in database with name {entry.Remote} and IP {entry.Remote}.",
133 log.
WriteLine(
"Traffic data collection is not supported for OpenNTP.",
Severity.Warn);
145 $
"Ambiguous peer IP {entry.Remote}. Multiple occurrences found in database.",
151 log.
WriteLine($
"Peer with IP {entry.Remote} does not exists in database.",
Severity.Warn);
static void HostNotFound(this LogBase log, int hostId)
static void AddErrors(this LogBase log, IEnumerable< string > errors)
static void OpenNtpConfigError(this LogBase log)
abstract void WriteLine(string text, Severity severity)
static void HostNameNotFound(this LogBase log, string ip, Exception e)
static void UserId(this LogBase log, uint userId)
static void PeerIpAmbiguous(this LogBase log, AssociationEntry entry)
static void HostImportError(this LogBase log, Exception e)
static void PidFileError(this LogBase log, Exception e)
static void InitializationError(this LogBase log, Exception e)
static void JobInitStart(this LogBase log)
static void ClusterReady(this LogBase log, NodeConfiguration node)
static void NewHost(this LogBase log, HostConfiguration server, IPAddress ip)
static void ListenerError(this LogBase log, Exception e)
static void NoConfig(this LogBase log, string file)
static void KnownServer(this LogBase log, int id, string name)
static void TableError(this LogBase log, Exception e)
static void Starting(this LogBase log, string version)
static void ConfigFile(this LogBase log, string file)
static void ProcessId(this LogBase log, int pid)
static void ClusterError(this LogBase log, Exception e)
static void DatabaseError(this LogBase log, Exception e)
static void ListenerReady(this LogBase log, Listener listener)
static void SchedulerError(this LogBase log, Exception e)
static void JobInitEnd(this LogBase log)
static void UserIdError(this LogBase log, uint userId)
static void PeerImportError(this LogBase log, Exception e)
static void NewPeer(this LogBase log, AssociationEntry entry)
static void InstanceName(this LogBase log, string name)
static void PeerIpNotFound(this LogBase log, AssociationEntry entry)