Skip to content

Conversation

david-luna
Copy link
Member

Narrow a bit more the Logger typedef and move it to logging.js file

Checklist

  • Implement code
  • Add tests
  • Update TypeScript typings
  • Update documentation
  • Add CHANGELOG.asciidoc entry
  • Commit message follows commit guidelines

@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Aug 3, 2023
@david-luna david-luna requested a review from trentm August 3, 2023 15:13
lib/logging.js Outdated
Comment on lines 11 to 17
* @property {function(Record<string, any> | string, ...any): undefined} log
* @property {function(Record<string, any> | string, ...any): undefined} info
* @property {function(Record<string, any> | string, ...any): undefined} warn
* @property {function(Record<string, any> | string, ...any): undefined} error
* @property {function(Record<string, any> | string, ...any): undefined} fatal
* @property {function(Record<string, any> | string, ...any): undefined} debug
* @property {function(Record<string, any> | string, ...any): undefined} trace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: There isn't a <logger>.log(...) function. (Technically there is a .silent(...) with Pino, but let's not mentioned that one here in our type.)
nit2: My OCD would be happier if these were listed in level order, e.g.: fatal, error, warn, info, debug, trace. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make your OCD happy :)

@david-luna david-luna merged commit f4ebe87 into dev/4.x Aug 3, 2023
@david-luna david-luna deleted the dluna/move-logging-types branch August 3, 2023 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-nodejs Make available for APM Agents project planning.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants