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

Static Package Functions

static void DestinationFileError (this LogBase log, string file, Exception e)
 
static void DestinationNewDirectory (this LogBase log, string created)
 
static void DestinationOwnerError (this LogBase log, string file, Exception e=null)
 
static void DestinationPathError (this LogBase log, string file, Exception e)
 
static void DestinationPermissionError (this LogBase log, string file, Exception e=null)
 
static void WroteFile (this LogBase log, string file)
 

Detailed Description

Definition at line 27 of file LogExtensions.cs.

Member Function Documentation

static void Ntp.Analyzer.Log.LogExtensions.DestinationFileError ( this LogBase  log,
string  file,
Exception  e 
)
inlinestaticpackage

Definition at line 29 of file LogExtensions.cs.

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

30  {
31  log.WriteLine(
32  $"Could not write file {file}",
33  e != null ? Severity.Warn : Severity.Notice);
34 
35  if (e != null)
36  {
37  log.WriteLine(e, Severity.Trace);
38  }
39  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Log.LogExtensions.DestinationNewDirectory ( this LogBase  log,
string  created 
)
inlinestaticpackage

Definition at line 41 of file LogExtensions.cs.

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

42  {
43  log.WriteLine(
44  $"Created new directory {created}",
45  Severity.Notice);
46  }

Here is the call graph for this function:

static void Ntp.Analyzer.Log.LogExtensions.DestinationOwnerError ( this LogBase  log,
string  file,
Exception  e = null 
)
inlinestaticpackage

Definition at line 48 of file LogExtensions.cs.

References e, and Ntp.Common.Log.LogBase.WriteLine().

49  {
50  log.WriteLine(
51  $"Could not change ownership of file {file}",
52  e != null ? Severity.Warn : Severity.Notice);
53 
54  if (e != null)
55  {
56  log.WriteLine(e, Severity.Trace);
57  }
58  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Log.LogExtensions.DestinationPathError ( this LogBase  log,
string  file,
Exception  e 
)
inlinestaticpackage

Definition at line 60 of file LogExtensions.cs.

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

61  {
62  log.WriteLine(
63  $"Could not create path for file {file}",
64  e != null ? Severity.Warn : Severity.Notice);
65 
66  if (e != null)
67  {
68  log.WriteLine(e, Severity.Trace);
69  }
70  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Log.LogExtensions.DestinationPermissionError ( this LogBase  log,
string  file,
Exception  e = null 
)
inlinestaticpackage

Definition at line 72 of file LogExtensions.cs.

References e, and Ntp.Common.Log.LogBase.WriteLine().

73  {
74  log.WriteLine(
75  $"Could not change permission on file {file}",
76  e != null ? Severity.Warn : Severity.Notice);
77 
78  if (e != null)
79  {
80  log.WriteLine(e, Severity.Trace);
81  }
82  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

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

Definition at line 84 of file LogExtensions.cs.

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

85  {
86  log.WriteLine(
87  $"Wrote new file {file}",
88  Severity.Debug);
89  }

Here is the call graph for this function:


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