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.

CreateTemplate(string category, object context)

Returns a new IMessage that contains template values.

CreateTemplate(string category)

Returns a new IMessage that contains template values.

Debug(string message)

Writes the specified message with MessageLevel.Debug.

Error(string message)

Writes the specified message with MessageLevel.Error.

Information(string message)

Writes the specified message with MessageLevel.Information.

Log(IMessage message)

Logs the specified message.

Log(IMessage message, IMessage template)

Logs the specified message using the specified template properties.

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

Logs the specified message.

Warning(string message)

Writes the specified message with MessageLevel.Warning.

Fields

Name Description
Null

A null (Nothing in Visual Basic) implementation of ILogger .