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

Static Package Functions

static void CreateDatabaseError (this LogBase log, Exception e)
 
static void CreateTable (this LogBase log, string table)
 
static void CreateTableError (this LogBase log, Exception e)
 
static void DeleteError (this LogBase log, string table, Exception e)
 
static void InsertError (this LogBase log, string table, Exception e)
 
static void ReadError (this LogBase log, string table, Exception e)
 
static void TableExists (this LogBase log, string table)
 
static void UpdateError (this LogBase log, string table, Exception e)
 

Static Private Member Functions

static void Advice (LogBase log)
 

Detailed Description

Definition at line 33 of file LogExtensions.cs.

Member Function Documentation

static void Ntp.Analyzer.Data.Log.LogExtensions.Advice ( LogBase  log)
inlinestaticprivate

Definition at line 89 of file LogExtensions.cs.

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

90  {
91  log.WriteLine("Please check your configuration.", Severity.Notice);
92  }
abstract void WriteLine(string text, Severity severity)

Here is the call graph for this function:

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

Definition at line 35 of file LogExtensions.cs.

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

36  {
37  log.WriteLine("Failed to create database.", Severity.Error);
38  log.WriteLine(e);
39  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.CreateTable ( this LogBase  log,
string  table 
)
inlinestaticpackage

Definition at line 41 of file LogExtensions.cs.

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

42  {
43  log.WriteLine(
44  $"Creating new table '{table}'.",
45  Severity.Notice);
46  }

Here is the call graph for this function:

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

Definition at line 48 of file LogExtensions.cs.

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

49  {
50  log.WriteLine("Could not create database table.", Severity.Error);
51  log.WriteLine(e);
52  }
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.DeleteError ( this LogBase  log,
string  table,
Exception  e 
)
inlinestaticpackage

Definition at line 54 of file LogExtensions.cs.

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

55  {
56  log.WriteLine($"Error while deleting from table {table}: {e.Message}", Severity.Warn);
57  log.WriteLine(e, Severity.Warn);
58  Advice(log);
59  }
static void Advice(LogBase log)
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.InsertError ( this LogBase  log,
string  table,
Exception  e 
)
inlinestaticpackage

Definition at line 61 of file LogExtensions.cs.

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

62  {
63  log.WriteLine($"Error while inserting into table {table}: {e.Message}", Severity.Warn);
64  log.WriteLine(e, Severity.Warn);
65  Advice(log);
66  }
static void Advice(LogBase log)
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.ReadError ( this LogBase  log,
string  table,
Exception  e 
)
inlinestaticpackage

Definition at line 68 of file LogExtensions.cs.

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

69  {
70  log.WriteLine($"Error while reading from table {table}: {e.Message}", Severity.Warn);
71  log.WriteLine(e, Severity.Warn);
72  Advice(log);
73  }
static void Advice(LogBase log)
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.TableExists ( this LogBase  log,
string  table 
)
inlinestaticpackage

Definition at line 75 of file LogExtensions.cs.

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

76  {
77  log.WriteLine(
78  $"Skipping table '{table}'. Already exist.",
79  Severity.Debug);
80  }

Here is the call graph for this function:

static void Ntp.Analyzer.Data.Log.LogExtensions.UpdateError ( this LogBase  log,
string  table,
Exception  e 
)
inlinestaticpackage

Definition at line 82 of file LogExtensions.cs.

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

83  {
84  log.WriteLine($"Error while updating table {table}: {e.Message}", Severity.Warn);
85  log.WriteLine(e, Severity.Warn);
86  Advice(log);
87  }
static void Advice(LogBase log)
var e
Definition: bootstrap.min.js:6

Here is the call graph for this function:


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