Package log4r-mongoDB integration

84 Views Asked by At

I explored the log4r package and found that we have console and file appenders. I am looking for pushing the logs to a mongoDB database. I am unable to find any way in pushing the logs to mongoDB, do we have any appender for the same.

TIA

1

There are 1 best solutions below

1
On

You can try the mongoimport tool

If you do not specify a file (option --file=), mongoimport reads data from standard input (e.g. "stdin").

Or write logs into a temporary file and use mongoimport to import it.