Hiya. I have a weird edge case problem I was hoping someone could help me with? I have a number of legacy apps on Lucee that use cflog tags for various reasons. I’m currently piping all logs (application and Lucee’s own logs) to Graylog by watching folders on disk and collecting the output, but the logs are annoying to parse in Graylog and we’re missing information. Ideal case, all the logs across the whole system would be in json format, written to disk in a known location, so that I can easily parse them in Graylog.
It looks like I can install something like log4j and add a log4j.properties file, but it’s not going to affect the cflog outputs. I can see people redirecting standard output to a udp stream, but for various reasons I can’t send logs over udp to graylog, they have to be on disk. It looks like in the lucee-web.xml.cfm there’s some extra options that might help me here, but I don’t understand how they work. I could also install something like Logbox, but I’d need to change all the current logging tags to make it work.
Thanks @yamikuronue! @isapir or @micstriit can one (or both) of you chime in on this one? I’m not sure there’s any other people who understand enough about how Lucee logs under the covers to answer this.
Can you or anybody else give any more detail on the steps needed to create a new appender and hook it up? I figure each sentence from someone who has any idea what they’re talking about will save me 8 hours of floundering.