Answer the question
In order to leave comments, you need to log in
How to parallelize logging in bunyan?
I use bunyan
to output logs to a file and PostgreSQL.
The problem is that I can't write logs to the file and to the database at the same time through one Logger.
With these settings, everything is written to a file without any problems:
"optLogger2": {
"name": "myapp",
"streams": [
{
"path": "./logs.json"
}
]
}
stream: ringbuffer
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question