-
Hi all Currently I have opengrok setup to write per project log files using the JUL logger, FileHandler and Formatter. This is working OK, but as I'm trying to integrate my opengrok instance into the rest of our development infrastructure, I have to make sure that all logs go to syslog where they can be centralized. In Python this is all quite easily done since the standard logger library also has a SyslogHandler, but no such luck with JUL (or so it seems?). So, what are my options? Do you have any advice? Can this be done without having to change opengrok? If not, are there any thoughts on how to do this with a patch to opengrok? I am thinking about moving the logging in opengrok to SL4J? cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Firstly, given the log4j stuff that is happening currently (#3837) I'd be very hesitant to switch the logging over from I assume you are interested in passing everything from either indexer or the web app to syslog, in particular to a remote syslog server. Not considering the Python based tools at the moment (for simplicity), these contain their own logging (e.g. So, first thing I'd look at is some logging handler that can be added to the list of |
Beta Was this translation helpful? Give feedback.
Firstly, given the log4j stuff that is happening currently (#3837) I'd be very hesitant to switch the logging over from
java.util.logging
(JUL) to something else (even if it was a facade).I assume you are interested in passing everything from either indexer or the web app to syslog, in particular to a remote syslog server. Not considering the Python based tools at the moment (for simplicity), these contain their own logging (e.g.
opengrok-mirror
).So, first thing I'd look at is some logging handler that can be added to the list of
handlers
inlogging.properties
that support logging via syslog. https://stackoverflow.com/a/2312463/11582827 suggests to use a JUL to SLF4J bridge (SLF4JBridge…