@terascope/job-components / index / Logger
Namespace: Logger
Index
Classes
Class | Description |
---|---|
RingBuffer | - |
RotatingFileStream | - |
Interfaces
Interface | Description |
---|---|
LoggerOptions | - |
RingBufferOptions | - |
RotatingFileStreamOptions | - |
Serializers | - |
StdSerializers | - |
Stream | - |
Type Aliases
LogLevel
LogLevel:
LogLevelString
|number
Source
packages/types/dist/src/logger.d.ts:186
LogLevelString
LogLevelString:
"trace"
|"debug"
|"info"
|"warn"
|"error"
|"fatal"
Source
packages/types/dist/src/logger.d.ts:185
Serializer()
Serializer: (
input
) =>any
Parameters
Parameter | Type |
---|---|
input | any |
Returns
any
Source
packages/types/dist/src/logger.d.ts:217
Variables
DEBUG
const
DEBUG:number
Source
packages/types/dist/src/logger.d.ts:180
ERROR
const
ERROR:number
Source
packages/types/dist/src/logger.d.ts:183
FATAL
const
FATAL:number
Source
packages/types/dist/src/logger.d.ts:184
INFO
const
INFO:number
Source
packages/types/dist/src/logger.d.ts:181
TRACE
const
TRACE:number
Source
packages/types/dist/src/logger.d.ts:179
WARN
const
WARN:number
Source
packages/types/dist/src/logger.d.ts:182
levelFromName
const
levelFromName:{ [name in LogLevelString]: number }
Source
packages/types/dist/src/logger.d.ts:187
nameFromLevel
const
nameFromLevel:object
Index signature
[level
: number
]: string
Source
packages/types/dist/src/logger.d.ts:190
stdSerializers
const
stdSerializers:StdSerializers
Source
packages/types/dist/src/logger.d.ts:193
Functions
createLogger()
createLogger(
options
):Logger
Parameters
Parameter | Type |
---|---|
options | LoggerOptions |
Returns
Source
packages/types/dist/src/logger.d.ts:194
resolveLevel()
resolveLevel(
value
):number
Parameters
Parameter | Type |
---|---|
value | LogLevel |
Returns
number
Source
packages/types/dist/src/logger.d.ts:196
safeCycles()
safeCycles(): (
key
,value
) =>any
Returns
Function
Parameters
Parameter | Type |
---|---|
key | string |
value | any |
Returns
any
Source
packages/types/dist/src/logger.d.ts:195