Skip to content

[logger] - Allow object input or error input #31

@songz

Description

@songz

logger.error should accept error object, objects, and/or string.

All the other logger functions should allow for objects, strings, array, or other data types.

If it is error, you can call the .toString() method.

https://stackoverflow.com/questions/30469261/checking-for-typeof-error-in-js

JSON.stringify( [1,2,3], null, 2)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions