Feature #1658
Support for syslog facilities
Status: | Closed | Start date: | 11/16/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Jaime Melis | % Done: | 0% | |
Category: | - | |||
Target version: | Release 4.0 | |||
Resolution: | fixed | Pull request: |
Description
Add a new logger for the OpenNebula core so VM log events can be stored and queried from a syslog server.
Associated revisions
Feature #1658: Enable syslog for oned.log
- LOG_SYSTEM in oned.conf
- SysLog class
Feature #1658: Add SysLogResource class and refactor
feature #1658: Move DEBUG_LEVEL and LOG_SYSTEM to the LOG section in oned.conf
feature #1658: register the default confuguration of oned.conf
feature #1658: Apply proper format to the logger
feature #1658: the syslog label is now a parameter for the syslog init method and it's not hardcoded inside of it
feature #1658: enable syslog for the scheduler
Feature #1658: split log messages with newlines into separate messages and log them
feature #1658: Moved init methods to constructors (static). Make use of log system enums for type cheking. Use the same LOG variables as oned for scheduler.
History
#1 Updated by Simon Boulet over 8 years ago
I would suggest looking into the Log4cpp library. It's flexible and available on most distributions. You could write a custom log Appender to mimic the current OpenNebula log, while easily allowing anyone to substitute that appender for their own should they wish to send logs somewhere else (ex. I use Log4cpp to send logs to Loggly).
#2 Updated by Ruben S. Montero over 8 years ago
Hi Simon,
It seems the way to go!!. I agree that using this library and given the log classes in OpenNebula should be fairly easy to add this...
Thank you very much for the pointer
Simon Boulet wrote:
I would suggest looking into the Log4cpp library. It's flexible and available on most distributions. You could write a custom log Appender to mimic the current OpenNebula log, while easily allowing anyone to substitute that appender for their own should they wish to send logs somewhere else (ex. I use Log4cpp to send logs to Loggly).
#3 Updated by Ruben S. Montero over 8 years ago
- Assignee set to Jaime Melis
#4 Updated by Ruben S. Montero over 8 years ago
- Status changed from New to Closed
- Resolution set to fixed