Skip to content

Replace Logger with CommonLogger #233

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 7, 2025
Merged

Conversation

kjamrog
Copy link
Collaborator

@kjamrog kjamrog commented Dec 12, 2024

Instead of internal Logger type, CommonLogger interface from @lokalize/node-core is used

UPGRADING.md Outdated
@@ -1,5 +1,18 @@
# Upgrading Guide

## Upgrading from `17.0.0` to `18.0.0`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

core is updated to 18.0.0 but sns and amqp are updated to different versions, should we indicate that here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think breaking change is the same for all libraries, right?
Maybe we can do something like:

- mqt/core from 17.0.0 to 18.0.0 
- amqp from x to y 
- ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, that will be probably more clear, already updated

@kjamrog kjamrog marked this pull request as ready for review December 16, 2024 11:05
@kjamrog kjamrog changed the title Replace logger with common logger Replace Logger with CommonLogger Dec 16, 2024
UPGRADING.md Outdated
## Upgrading </br> `core` `17.0.0` -> `18.0.0` </br> `sqs` `17.0.0` -> `18.0.0` </br> `sns` `18.0.0` -> `19.0.0` </br> `amqp` `16.0.0` -> `17.0.0`

### Description of Breaking Changes
- `logger` injectable dependency interface was replaced by `CommonLogger` from `@lokalise/node-core` package, It is compatible with on `pino` logger (https://github.com/pinojs/pino)
Copy link
Owner

Choose a reason for hiding this comment

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

is "on" redundant here?

@kjamrog kjamrog merged commit ac4721f into main Jan 7, 2025
6 checks passed
@kjamrog kjamrog deleted the replace_logger_with_common_logger branch January 7, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants