Enhanced C#
Language of your choice: library documentation
Public static fields | Properties | Public Member Functions | List of all members
Loyc.NullMessageSink Class Reference

Discards all messages. However, there is a Count property that increases by one with each message received, as well as an ErrorCount. More...


Source file:
Inheritance diagram for Loyc.NullMessageSink:
Loyc.IMessageSink< in in TContext > Loyc.Collections.ICount Loyc.Collections.IIsEmpty

Remarks

Discards all messages. However, there is a Count property that increases by one with each message received, as well as an ErrorCount.

Public static fields

static readonly NullMessageSink Value = new NullMessageSink()
 

Properties

int Count [get]
 Total number of messages that have been discarded. More...
 
int ErrorCount [get]
 Number of errors sent to this object so far, not including detail messages. More...
 
bool IsEmpty [get]
 
- Properties inherited from Loyc.Collections.ICount
int Count [get]
 Gets the number of items in the collection. More...
 
- Properties inherited from Loyc.Collections.IIsEmpty
bool IsEmpty [get]
 

Public Member Functions

void ResetCountersToZero ()
 
void Write (Severity level)
 
void Write (Severity level, object context, string format)
 
void Write (Severity level, object context, string format, object arg0, object arg1=null)
 
void Write (Severity level, object context, string format, params object[] args)
 
bool IsEnabled (Severity level)
 Always returns false. More...
 
- Public Member Functions inherited from Loyc.IMessageSink< in in TContext >
void Write (Severity level, TContext context, [Localizable] string format)
 Writes a message to the target that this object represents. More...
 
void Write (Severity level, TContext context, [Localizable] string format, object arg0, object arg1=null)
 
void Write (Severity level, TContext context, [Localizable] string format, params object[] args)
 

Member Function Documentation

◆ IsEnabled()

bool Loyc.NullMessageSink.IsEnabled ( Severity  level)

Always returns false.

Implements Loyc.IMessageSink< in in TContext >.

Property Documentation

◆ Count

int Loyc.NullMessageSink.Count
get

Total number of messages that have been discarded.

◆ ErrorCount

int Loyc.NullMessageSink.ErrorCount
get

Number of errors sent to this object so far, not including detail messages.