Log to database instead of log files

前端 未结 6 1435
别跟我提以往
别跟我提以往 2020-12-12 10:28

I\'m interested in sending all Rails application logging to a database (MySQL or MongoDB) either in addition to or instead of to a log file. There are a few reasons, most of

6条回答
  •  执念已碎
    2020-12-12 10:52

    as no answer was accepted until now, i will give my contribution

    i did develop a plugin to rsylog to save the logs not in files but at mongodb

    the whole source code, from rsyslog + plugin is here https://github.com/vpereira/rsyslogd-mongo

    to compile it, you should just run ./configure --help and see the available options.

提交回复
热议问题