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

Support multiple write destinations by logger. #202

Open
georgolden opened this issue Aug 11, 2022 · 0 comments
Open

Support multiple write destinations by logger. #202

georgolden opened this issue Aug 11, 2022 · 0 comments
Assignees

Comments

@georgolden
Copy link
Member

Problem

We need to write some logs to a db (postgres/redis, etc.) and be able to write logs by meaning. Write operation log to a specific table in a database, write statistic logs to a different table, etc.

Solution

Provide writable destinations by LoggerOptions from config file. Writable destination must have method write(buffer, fn) similar as NodeJS Writable Stream. Logger must support multiple write destinations like a set of writables.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant