1.0.0 • Published 7 years ago

@oddlog/record v1.0.0

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
7 years ago

@oddlog/record

Record exports

A record instance has the following attributes:

NameTypeDescription
arrayArrayThe raw parsed array.
schemaVersionNumberThe schema version of the record.
typeKey?StringThe key within the payload that describes the type.
isCustomMetaBooleanWhether the meta data is not the default (platform, host, pid) meta data; it is not if custom meta data got passed during logger creation.
metaInput?Array/ObjectThe plain meta data as passed during logger creation.
meta?Array/ObjectThe parsed meta object ({platform,host,pid}; if !isCustomMeta), the metaInput otherwise.
nameStringThe logger name.
dateDateThe record date.
levelNumberThe severity level of the record.
levelNameStringThe string value of level.
floorLevelNameStringThe levelName, if found; the floor index severity level name otherwise.
source?{file,row,col}The source location of the logging method call.
sourceInput?[file,row,col]The raw source.
messageStringThe primary message of the record.
payload*The payload of the record.