BuildMaster SDK Reference
Version:

Logger Class

Contains methods for writing log messages.

Inheritance Hierarchy

  • object
    • Inedo.Diagnostics.Logger

Syntax

public class Logger

Methods

Name Description
AddMessenger(IMessenger messenger)

Adds a messenger to the logger.

ClearMessengers

Removes all messengers from the logger.

Debug(string message)

Writes the specified message with MessageLevel.Debug

Debug(string format, object[] args)

Writes the specified message with MessageLevel.Debug and System.String.Format(System.String,System.Object[]) formatting

Error(string message)

Writes the specified message with MessageLevel.Error

Error(string format, object[] args)

Writes the specified message with MessageLevel.Error and System.String.Format(System.String,System.Object[]) formatting

Information(string message)

Writes the specified message with MessageLevel.Information

Information(string format, object[] args)

Writes the specified message with MessageLevel.Information and System.String.Format(System.String,System.Object[]) formatting

Log(IMessage message)

Logs the specified message.

Log(MessageLevel level, string message, string category, string details)

Logs the specified message.

Warning(string message)

Writes the specified message with MessageLevel.Warning

Warning(string format, object[] args)

Writes the specified message with MessageLevel.Warning and System.String.Format(System.String,System.Object[]) formatting