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

Holds an argument list compatible with IMessageSink<TContext>.Write(Severity,TContext,string). Typically used with MessageHolder. More...


Source file:
Inheritance diagram for Loyc.LogMessage:
Loyc.IHasLocation Loyc.ILogMessage

Remarks

Holds an argument list compatible with IMessageSink<TContext>.Write(Severity,TContext,string). Typically used with MessageHolder.

Public fields

object[] _args
 

Properties

Severity Severity [get, set]
 
object Context [get, set]
 
string Format [get, set]
 
object[] Args [get, set]
 
string Formatted [get]
 
object Location [get]
 
- Properties inherited from Loyc.IHasLocation
object Location [get]
 
- Properties inherited from Loyc.ILogMessage
Severity Severity [get]
 Indicates how problematic the message is (Debug, Note, Warning, Error, etc.) More...
 
object Context [get]
 An object associated with the event being logged (possibly huge). More...
 
string Format [get]
 Format string (without substitutions or localization) More...
 
object[] Args [get]
 Values to be substituted into the format string. More...
 
string Formatted [get]
 Formatted string (with substitution and localization applied) More...
 
object Location [get]
 Typically this returns MessageSink.LocationOf(Context). More...
 

Public Member Functions

 LogMessage (Severity type, object context, string format, object arg0, object arg1=null)
 
 LogMessage (Severity type, object context, string format)
 
 LogMessage (Severity type, object context, string format, params object[] args)
 
override string ToString ()
 
void WriteTo (IMessageSink< object > sink)