Options
All
  • Public
  • Public/Protected
  • All
Menu

CategoryLogger, all methods accept a message or LogData (allowing for custom data to be passed along, useful for custom loggers e.g.). In addition all methods accept a lambda returning a message (string) or LogData, the latter is useful if you have rather expensive calculations to do before you can log it - the lambda will only be called when needed.

All methods ending with a c (e.g. debugc), are deprecated and will be removed in 0.6.0, use the normal ones instead.

Hierarchy

  • CategoryLogger

Implemented by

Index

Methods

debug

debugc

  • debugc(msg: function, ...categories: Category[]): void

error

errorc

  • errorc(msg: function, error: function, ...categories: Category[]): void
  • deprecated

    Since 0.5.0, will be removed in 0.6.0, use error instead.

    Parameters

    • msg: function
    • error: function
        • (): Error | null
        • Returns Error | null

    • Rest ...categories: Category[]

    Returns void

fatal

fatalc

  • fatalc(msg: function, error: function, ...categories: Category[]): void
  • deprecated

    Since 0.5.0, will be removed in 0.6.0, use fatal instead.

    Parameters

    • msg: function
    • error: function
        • (): Error | null
        • Returns Error | null

    • Rest ...categories: Category[]

    Returns void

info

infoc

  • infoc(msg: function, ...categories: Category[]): void

log

logc

  • logc(level: LogLevel, msg: function, error: function, ...categories: Category[]): void

resolved

  • This is a special opinionated way to log, that an exception (Error) occurred, but your code dealt with it in a proper way. That way we can say, there was an Error/Exception but we resolved it. This will be logged as: Error (resolved) in the log.

    Parameters

    Returns void

resolvedc

  • resolvedc(msg: function, error: function, ...categories: Category[]): void
  • deprecated

    Since 0.5.0, will be removed in 0.6.0, use resolved instead.

    This is a special opinionated way to log, that an exception (Error) occurred, but your code dealt with it in a proper way. That way we can say, there was an Error/Exception but we resolved it. This will be logged as: Error (resolved) in the log.

    Parameters

    • msg: function

      Message as closure

    • error: function

      Error as closure

        • (): Error | null
        • Returns Error | null

    • Rest ...categories: Category[]

      Categories to log for

    Returns void

trace

tracec

  • tracec(msg: function, ...categories: Category[]): void

warn

warnc

  • warnc(msg: function, ...categories: Category[]): void

Generated using TypeDoc