Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LoggerFactoryControl

Interface to control LoggerFactory.

Hierarchy

  • LoggerFactoryControl

Index

Methods

help

  • help(): void

listLogGroups

  • listLogGroups(): void

reset

  • reset(idGroup: number | null): void
  • Reset LogGroup back to original settings, applied to both new and existing loggers.

    Parameters

    • idGroup: number | null

      Group to reset, null for all groups.

    Returns void

setLogFormat

  • setLogFormat(format: string, showTimestamp: boolean, showLoggerName: boolean, idGroup: number | null): void
  • Set format for logging, format must be one of: "Default, YearMonthDayTime, YearDayMonthWithFullTime, YearDayMonthTime".

    Parameters

    • format: string

      One of Default, YearMonthDayTime, YearDayMonthWithFullTime, YearDayMonthTime.

    • showTimestamp: boolean

      True to show timestamp in log line

    • showLoggerName: boolean

      True to show logger name in log line

    • idGroup: number | null

      Group id, see listGroups() or null to apply to all groups

    Returns void

setLogLevel

  • setLogLevel(level: string, idGroup: number | null): void
  • Set new log level for id of LogGroup, applied to both new and existing loggers. If id is null applies to all groups.

    Parameters

    • level: string

      Level must be one of: Trace, Debug, Info, Warn, Error or Fatal.

    • idGroup: number | null

      Group id, see listGroups() to find them or null for all groups.

    Returns void

Generated using TypeDoc