LogTransportConfig

Type parameters

▪ T: SuperConstructor

▪ T: SuperConstructor

Hierarchy

↳ Config

  • Config

    ↳ LogTransportConfig

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new LogTransportConfig(props?: Partial‹LogTransportConfig›): LogTransportConfig

Overrides Config.constructor

Parameters:

NameType
props?Partial‹LogTransportConfig›

Returns: LogTransportConfig

Properties

Optional abbreviationLength

• abbreviationLength? : number = 15


Optional included

• included? : Record‹string, Configurable›

Inherited from Config.included

Overrides void


Optional inspectDepth

• inspectDepth? : number = 0


Optional isEnabled

• isEnabled? : boolean = true


Optional level

• level? : LogLevel = "info"


Optional merged

• merged? : Record‹string, Configurable›

Inherited from Config.merged

Overrides void


Optional timestampFormat

• timestampFormat? : string = "HH:mm:ss"

Methods

assign

▸ assign(props: Props): void

Implementation of Configurable

Inherited from Config.assign

Overrides void

Parameters:

NameType
propsProps

Returns: void


equals

▸ equals(other: any): boolean

Implementation of Configurable

Inherited from DefinableMixin.equals

Overrides CreateEmployee.equals

Parameters:

NameType
otherany

Returns: boolean


get

▸ get‹T›(path: string, runtimeDefaultValue?: T): T | any

Inherited from Config.get

Overrides void

Type parameters:

▪ T: any

Parameters:

NameType
pathstring
runtimeDefaultValue?T

Returns: T | any


getActions

▸ getActions(): Actions

Implementation of Hookable

Inherited from HookableMixin.getActions

Overrides CreateEmployee.getActions

Returns: Actions


getDefault

▸ getDefault‹T›(path: string): T | any

Implementation of Configurable

Inherited from Config.getDefault

Overrides void

Type parameters:

▪ T: any

Parameters:

NameType
pathstring

Returns: T | any


getExact

▸ getExact‹T›(path: string): T | any

Implementation of Configurable

Inherited from Config.getExact

Overrides void

Type parameters:

▪ T: any

Parameters:

NameType
pathstring

Returns: T | any


getHook

▸ getHook(action: string, id: string): Hook | undefined

Implementation of Hookable

Inherited from HookableMixin.getHook

Overrides CreateEmployee.getHook

Parameters:

NameType
actionstring
idstring

Returns: Hook | undefined


getHookOrThrow

▸ getHookOrThrow(action: string, id: string): Hook

Implementation of Hookable

Inherited from HookableMixin.getHookOrThrow

Overrides CreateEmployee.getHookOrThrow

Parameters:

NameType
actionstring
idstring

Returns: Hook


getHooks

▸ getHooks(action: string): Mappings

Implementation of Hookable

Inherited from HookableMixin.getHooks

Overrides CreateEmployee.getHooks

Parameters:

NameType
actionstring

Returns: Mappings


getPropTypes

▸ getPropTypes(): Props

Implementation of Configurable

Inherited from Config.getPropTypes

Overrides DefinableMixin.getPropTypes

Returns: Props


getPropertyInitializers

▸ getPropertyInitializers(): Props

Implementation of Configurable

Inherited from DefinableMixin.getPropertyInitializers

Overrides CreateEmployee.getPropertyInitializers

Returns: Props


has

▸ has(path: string): boolean

Implementation of Configurable

Inherited from Config.has

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


hasAction

▸ hasAction(action: string): boolean

Implementation of Hookable

Inherited from HookableMixin.hasAction

Overrides CreateEmployee.hasAction

Parameters:

NameType
actionstring

Returns: boolean


hasDefault

▸ hasDefault(path: string): boolean

Implementation of Configurable

Inherited from Config.hasDefault

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


hasHook

▸ hasHook(action: string, id: string): boolean

Implementation of Hookable

Inherited from HookableMixin.hasHook

Overrides CreateEmployee.hasHook

Parameters:

NameType
actionstring
idstring

Returns: boolean


include

▸ include(config: Configurable): void

Implementation of Configurable

Inherited from Config.include

Overrides void

Parameters:

NameType
configConfigurable

Returns: void


isConfigurable

▸ isConfigurable(path: string): boolean

Implementation of Configurable

Inherited from Config.isConfigurable

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


merge

▸ merge(config: Configurable): void

Implementation of Configurable

Inherited from Config.merge

Overrides void

Parameters:

NameType
configConfigurable

Returns: void


overrideHook

▸ overrideHook(action: string, id: string, hook: Hook): void

Implementation of Hookable

Inherited from HookableMixin.overrideHook

Overrides CreateEmployee.overrideHook

Parameters:

NameType
actionstring
idstring
hookHook

Returns: void


registerHook

▸ registerHook(action: string, id: string, hook: Hook, shouldOverride?: boolean): void

Implementation of Hookable

Inherited from HookableMixin.registerHook

Overrides CreateEmployee.registerHook

Parameters:

NameType
actionstring
idstring
hookHook
shouldOverride?boolean

Returns: void


removeHook

▸ removeHook(action: string, id: string): void

Implementation of Hookable

Inherited from HookableMixin.removeHook

Overrides CreateEmployee.removeHook

Parameters:

NameType
actionstring
idstring

Returns: void


set

▸ set‹T›(path: string, value: T): void

Implementation of Configurable

Inherited from Config.set

Overrides void

Type parameters:

▪ T: any

Parameters:

NameType
pathstring
valueT

Returns: void


toPlainObject

▸ toPlainObject(): Props

Implementation of Configurable

Inherited from DefinableMixin.toPlainObject

Overrides CreateEmployee.toPlainObject

Returns: Props


validateProps

▸ validateProps(props: Record‹string | number | symbol, any› | undefined, propTypes: PropTypes, isStrict?: boolean): boolean

Inherited from DefinableMixin.validateProps

Overrides CreateEmployee.validateProps

Parameters:

NameType
propsRecord‹string | number | symbol, any› | undefined
propTypesPropTypes
isStrict?boolean

Returns: boolean


Static from

▸ from‹T›(props: Record‹string, any›): T

Inherited from Config.from

Overrides void

Type parameters:

▪ T

Parameters:

NameType
propsRecord‹string, any›

Returns: T


Static getPropTypes

▸ getPropTypes(): Props

Inherited from DefinableMixin.getPropTypes

Overrides CreateEmployee.getPropTypes

Returns: Props


Static getPropertyInitializers

▸ getPropertyInitializers(): Props

Inherited from DefinableMixin.getPropertyInitializers

Overrides CreateEmployee.getPropertyInitializers

Returns: Props

Object literals

Optional flags

▪ flags? : object

includeStackTrace

• includeStackTrace: true = true

isAbbreviatingSources

• isAbbreviatingSources: false = false

isColored

• isColored: true = true

isLabeled

• isLabeled: false = false

isTimestamped

• isTimestamped: true = true

isWholeLineColored

• isWholeLineColored: true = true

showMethod

• showMethod: true = true

showTarget

• showTarget: true = true


Optional logColors

▪ logColors? : object

alert

• alert: string = "bold yellow"

crit

• crit: string = "bold red"

debug

• debug: string = "bold cyan"

emerg

• emerg: string = "bold redBG"

error

• error: string = "red"

info

• info: string = "white"

notice

• notice: string = "blue"

warning

• warning: string = "yellow"


Optional messages

▪ messages? : object

exit

• exit: any = chalk{gray exit}

start

• start: any = chalk{gray start}


Optional parts

▪ parts? : object

initial

• initial: string = ""

label

• label: string = ""

separator

• separator: string = " "


Optional partsColors

▪ partsColors? : object

initial

• initial: string = "white"

label

• label: string = "white"

method

• method: string = "white"

separator

• separator: string = "white"

target

• target: string = "white"

timestamp

• timestamp: string = "white"