Describe the bug
2020-06-04 15:13:57.858 INFO [test.ts:5] TypeError: Cannot read property '0' of undefined
at stylizeWithColor (internal/util/inspect.js:340:27)
at formatPrimitive (internal/util/inspect.js:1120:12)
at formatValue (internal/util/inspect.js:533:12)
at formatProperty (internal/util/inspect.js:1406:11)
at formatRaw (internal/util/inspect.js:785:9)
at formatValue (internal/util/inspect.js:591:10)
at Object.inspect (internal/util/inspect.js:221:10)
at ../node_modules/tslog/src/index.ts:435:26
at Array.forEach ()
at Logger._printPrettyLog (../node_modules/tslog/src/index.ts:430:30)
To Reproduce
import { Logger } from "tslog";
const logger = new Logger();
logger.info({ foo: "bar" });
Expected behavior
Log object
Context
Node v12.14.0
ts-node v8.10.2
tslog v2.1.0
Describe the bug
2020-06-04 15:13:57.858 INFO [test.ts:5] TypeError: Cannot read property '0' of undefined
at stylizeWithColor (internal/util/inspect.js:340:27)
at formatPrimitive (internal/util/inspect.js:1120:12)
at formatValue (internal/util/inspect.js:533:12)
at formatProperty (internal/util/inspect.js:1406:11)
at formatRaw (internal/util/inspect.js:785:9)
at formatValue (internal/util/inspect.js:591:10)
at Object.inspect (internal/util/inspect.js:221:10)
at ../node_modules/tslog/src/index.ts:435:26
at Array.forEach ()
at Logger._printPrettyLog (../node_modules/tslog/src/index.ts:430:30)
To Reproduce
Expected behavior
Log object
Context
Node v12.14.0
ts-node v8.10.2
tslog v2.1.0