Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
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 Loyc.Collections.ICount

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...
 

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...
 

Member Function Documentation

bool Loyc.NullMessageSink.IsEnabled ( Severity  level)

Always returns false.

Property Documentation

int Loyc.NullMessageSink.Count
get

Total number of messages that have been discarded.

int Loyc.NullMessageSink.ErrorCount
get

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