Class ConsoleSink
Logs messages in stdio.console
Inheritance
System.Object
ConsoleSink
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)
Namespace: Azos.Log.Sinks
Assembly: Azos.dll
Syntax
public sealed class ConsoleSink : Sink, IDisposable, IDaemon, IDaemonView, IApplicationComponent, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IConfigurable, INamed, IOrdered
Constructors
ConsoleSink(ISinkOwner)
Declaration
public ConsoleSink(ISinkOwner owner)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner |
ConsoleSink(ISinkOwner, String, Int32)
Declaration
public ConsoleSink(ISinkOwner owner, string name, int order)
Parameters
Type | Name | Description |
---|---|---|
ISinkOwner | owner | |
System.String | name | |
System.Int32 | order |
Properties
Colored
Set to true to colorize the console background/foreground per message type
Declaration
[Config]
public bool Colored { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LogTimeFormat
Time format for log line entries
Declaration
[Config]
public string LogTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DoSend(Message)
Declaration
protected override void DoSend(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Overrides
Implements
System.IDisposable