CreatePublisher() public static method

Looks up the type of the log source
public static CreatePublisher ( Type type, MessageClass classification ) : LogPublisher
type System.Type the type
classification MessageClass the classification of the type of messages that this publisher will raise.
return LogPublisher
Example #1
0
 /// <summary>
 /// Creates a <see cref="DisposableLoggingClassBase"/>
 /// </summary>
 protected DisposableLoggingClassBase(MessageClass messageClassification)
 {
     Log = Logger.CreatePublisher(GetType(), messageClassification);
 }