Hi there!
I would like to have all logback logs from openhab to be transported to a Graylog2 logserver (
http://graylog2.org/)
Then I can be alerted on errors and can analyze the logs better. Since there is a lot going on, going through the files with a log viewer is not practical.
I've found just the module to do that:
https://github.com/Moocar/logback-gelfWith this module you should be able to add a new appender in the logback configuration:
<appender name="GELF" class="me.moocar.logbackgelf.GelfAppender">
And with this all logs can be sent to the logserver for analysis.
So far I have been unsuccessful in adding this dependency to openhab, and I keep getting class not found exceptions.
I've tried the following:
- added the new jar to the addons directory and the lib directory of openhab
- converted the jar into a plugin with eclipse. then i've downloaded openhab source and added the plugin as a dependency within the org.openhab.dependencies feature. But with the new plugin as a dependency, it cannot find the new plugin when I do a maven clean install on openhab. I think I might need to add it to a repository for it to be found?
Can anybody point me in the direction of how I can best add this dependency to the core so that logback can access it?
I'm both interested in a quick&dirty solution, or a solution where I can create a pull request and see if others might benefit from having a logserver with openhab as well.
Thanks in advance!