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)
Assembly: Azos.dll
Syntax
public sealed class NOPLog : ApplicationComponent, ILogImplementation, ILog, IApplicationComponent, ILocalizedTimeProvider, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
ExternalParameters
Declaration
public IEnumerable<KeyValuePair<string, Type>> ExternalParameters { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> |
|
InstrumentationEnabled
Declaration
public bool InstrumentationEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LastCatastrophe
Declaration
public Message LastCatastrophe { 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
Declaration
public void Configure(IConfigSectionNode node)
Parameters
ExternalGetParameter(String, out Object, String[])
Declaration
public bool ExternalGetParameter(string name, out object value, params string[] groups)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
System.String[] |
groups |
|
Returns
Type |
Description |
System.Boolean |
|
ExternalParametersForGroups(String[])
Declaration
public IEnumerable<KeyValuePair<string, Type>> ExternalParametersForGroups(params string[] groups)
Parameters
Type |
Name |
Description |
System.String[] |
groups |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String, System.Type>> |
|
ExternalSetParameter(String, Object, String[])
Declaration
public bool ExternalSetParameter(string name, object value, params string[] groups)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
System.String[] |
groups |
|
Returns
Type |
Description |
System.Boolean |
|
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