Skip to main content

Variable: source

const source: FormatWrap

Defined in: core/src/Logger.ts:26

Custom winston format that determines the class and/or method that issued the log statement and attaches it to the log info as source (e.g. MyClass.methodName).

When the logger was obtained via a child logger bound to an object's _fqn (see ObjectFactory), the fully qualified name takes precedence over the class name so that e.g. com.example.MyClass.methodName is used instead of the bare MyClass.methodName derived from the call stack. The method name is still taken from the call stack in either case.