Class NOPLog
Represents log that does not do anything
Inheritance
System.Object
NOPLog
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.dll
Syntax
public sealed class NOPLog : ApplicationComponent, ILog, IApplicationComponent, IDisposable, ILocalizedTimeProvider
Properties
Instance
Returns a singlelton instance of the log that does not do anything
Declaration
public static NOPLog Instance { get; }
Property Value
LastCatastrophy
Declaration
public Message LastCatastrophy { get; }
Property Value
LastError
Declaration
public Message LastError { get; }
Property Value
LastWarning
Declaration
public Message LastWarning { get; }
Property Value
LocalizedTime
Declaration
public DateTime LocalizedTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
TimeLocation
Declaration
public TimeLocation TimeLocation { get; }
Property Value
Methods
LocalizedTimeToUniversalTime(DateTime)
Declaration
public DateTime LocalizedTimeToUniversalTime(DateTime local)
Parameters
Type |
Name |
Description |
System.DateTime |
local |
|
Returns
Type |
Description |
System.DateTime |
|
UniversalTimeToLocalizedTime(DateTime)
Declaration
public DateTime UniversalTimeToLocalizedTime(DateTime utc)
Parameters
Type |
Name |
Description |
System.DateTime |
utc |
|
Returns
Type |
Description |
System.DateTime |
|
Write(Message)
Declaration
public void Write(Message msg)
Parameters
Write(Message, Boolean)
Declaration
public void Write(Message msg, bool urgent)
Parameters
Type |
Name |
Description |
Message |
msg |
|
System.Boolean |
urgent |
|
Write(MessageType, String, Boolean, String, String)
Declaration
public void Write(MessageType type, string text, bool urgent, string topic = null, string from = null)
Parameters
Type |
Name |
Description |
MessageType |
type |
|
System.String |
text |
|
System.Boolean |
urgent |
|
System.String |
topic |
|
System.String |
from |
|
Write(MessageType, String, String, String)
Declaration
public void Write(MessageType type, string text, string topic = null, string from = null)
Parameters
Type |
Name |
Description |
MessageType |
type |
|
System.String |
text |
|
System.String |
topic |
|
System.String |
from |
|
Implements
System.IDisposable
Extension Methods