Skip to content

Basic Support for Logging #1

Closed
Closed
@nobugs-hare

Description

@nobugs-hare

API:

  • Somehwhat reminiscent of Node.js' Winston, but using levels from syslogd: emerg, alert, crit, err, warning, notice, info, debug
  • formatting based on {fmt}
  • adding a new dimension to the logging - 'module' . Module is an optional StringLiteral first (!) parameter to a log() call; if not specified (which is majority of cases) it defaults to a well-known #define (which can be redefined by end-user). In general, module corresponds to Node, though some libraries MAY specify their own modules.
  • ideally, logger SHOULD be a member of user-defined Node (and NOT of generic Node) - (a) to facilitate multiple loggers etc., and (b) to be more consistent with Node.js practices.

Implementation:

  • usually completely non-blocking (starting to skip when not able to cope) - unless specified otherwise for a level
  • for the time being - supporting only file as a target
  • for the time being - no support for filtering.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions