Adam Cameron
zackster
09/01/2023, 9:42 AMAdam Cameron
Adam Cameron
Adam Cameron
zackster
09/11/2023, 10:45 AMAdam Cameron
Adam Cameron
zackster
09/11/2023, 12:32 PMAdam Cameron
Adam Cameron
zackster
09/11/2023, 3:47 PMAdam Cameron
new Administrator("web", server.system.environment.LUCEE_PASSWORD).updateLogSettings(
name = "whatevs",
level = "INFO",
appenderClass = "lucee.commons.io.log.log4j2.appender.ResourceAppender",
layoutClass = "lucee.commons.io.log.log4j2.layout.ClassicLayout",
appenderArgs = {maxfiles = 20, maxfilesize = 1073741824}
)
// ...
writeLog(log="whatevs", type="info", text="this logs fine")
writeLog(log="whatevs", type="error", text="this logs fine")
callThirdPartyCodeHere()
writeLog(log="whatevs", type="info", text="no sign of this") // <----------------- :-(
writeLog(log="whatevs", type="error", text="this logs fine")
Now I don't doubt that callThirdPartyCodeHere is triggering [whatever], but it's not what is resetting the whatevs log to be log level ERROR. That's Lucee doing that.
NB: I can see the log's config in /opt/lucee/web/lucee-web.xml.cfm, and it says level="info", and the rest of the settings are the same as in the updateLogSettings call.