Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogMessageBuilder

Hierarchy

  • LogMessageBuilder

Index

Properties

messageFrom

messageFrom: string = "log"

The source of the message.

messageText

messageText: string = ""

The text of the message.

messageType

messageType: MessageType = MessageType.Information

The type of the message.

Methods

e

  • Convenience method for logging errors. Sets the type to MessageType.Error and also the text of the message.

    Parameters

    • t: string | Error

      the text of the message. If passed an Error, the message property of the error will be used.

    Returns LogMessageBuilder

from

i

  • Convenience method for logging information. Sets the type to MessageType.Information and also the text of the message.

    Parameters

    • t: string | Error

      the text of the message. If passed an Error, the message property of the error will be used.

    Returns LogMessageBuilder

log

  • log(): void

now

r

  • Convenience method for logging responses. Sets the type to MessageType.Response and also the text of the message.

    Parameters

    • t: string | Error

      the text of the message. If passed an Error, the message property of the error will be used.

    Returns LogMessageBuilder

text

type

w

  • Convenience method for logging warnings. Sets the type to MessageType.Warning and also the text of the message.

    Parameters

    • t: string | Error

      the text of the message. If passed an Error, the message property of the error will be used.

    Returns LogMessageBuilder

Generated using TypeDoc