Meet The Logger New API #89
alimd
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@vatr/logger
New APIPrepare the logger
logProperty(property, value)
console.debug
property change.Example:
logMethod(method)
console.debug
function or method calls.Example:
logMethodArgs(method, args)
console.debug
function or method calls with arguments.Example:
logMethodFull(method, args, result)
console.debug
function or method calls with arguments.Example:
incident(method, code, description, ...args)
console.trace
an event or expected accident. (not warn or error)Example:
accident(method, code, description, ...args)
console.warn
an unexpected accident or error that you handled.Example:
error(method, code, errorStack, ...args)
console.error
an unexpected error.Example:
logOther(...args)
Simple
console.debug
with styled scope.Example:
Beta Was this translation helpful? Give feedback.
All reactions