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
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
Copyright © 2021 Jogjafile Inc.
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.