Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Review Error Handling and add Critical Error handler in APIHub #918

Closed
salboaie opened this issue Sep 16, 2022 · 0 comments
Closed

Review Error Handling and add Critical Error handler in APIHub #918

salboaie opened this issue Sep 16, 2022 · 0 comments
Assignees

Comments

@salboaie
Copy link
Member

salboaie commented Sep 16, 2022

$$.logFormat("")
$$.getLogger

let logger = $$.getLoger({
class,
module | middleware | component,
criticalLogFile
})

logger instance methods:

log()
info()
warn()
trace()
error(...)
critical()

Default Output:
TYPE [LOG,INFO,WARN,TRACE, ERROR, CRITICAL] timestamp class, module, customMessage
Observations:

  • put a tab in front of multi-line logs
  • padding with spaces for LOG,INFO,WARN,TRACE, ERROR, CRITICAL (min 9 characters)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants