Class Logger

This class provides logging facilities. By default they are output to System.Diagnostics. There exists during runtime a single instance of this object. Retrieve it with the method Instance.

Inheritance
System.Object
Logger
Namespace: PSPDFKitFoundation.Log
Assembly: PSPDFKitFoundation.dll
Syntax
public sealed class Logger

Properties

CurrentLevel

The current log level. Level

Declaration
public Level CurrentLevel { get; set; }
Property Value
Type Description
Level

CustomLogger

Set this to your own custom logger derived from ICustomLogger to override logging.

Declaration
public ICustomLogger CustomLogger { get; set; }
Property Value
Type Description
ICustomLogger

Instance

Returns the single instance of the Logger

Declaration
public static Logger Instance { get; }
Property Value
Type Description
Logger

Methods

Critical(String, String)

Log a critical message.

Declaration
public void Critical(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source the message.

System.String message

The error message.

Debug(String, String)

Log a debug message.

Declaration
public void Debug(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source of the debug message.

System.String message

The debug message.

Error(String, String)

Log an error message.

Declaration
public void Error(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source the message.

System.String message

The error message.

Info(String, String)

Log an information message.

Declaration
public void Info(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source of the message.

System.String message

The information message.

Log(Level, String, String)

Log an error message.

Declaration
public void Log(Level level, string tag, string message)
Parameters
Type Name Description
Level level

The log level of the message. Level.

System.String tag

A tag to identify the source of message.

System.String message

The message.

Trace(String, String)

Log a trace message.

Declaration
public void Trace(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source of the message.

System.String message

The trace message.

Warn(String, String)

Log an warning message.

Declaration
public void Warn(string tag, string message)
Parameters
Type Name Description
System.String tag

A tag to identify the source of the message.

System.String message

The warning message.