Application.log defaults to ERROR in 6.2

By default in Lucee 6.2, all logs except deploy.log default to ERROR

Previously, application.log was set to INFO

<CFLOG> / writeLog() default to INFO, so you may want to override the default log level

The easiest way is to drop a cfconfig json snippet into your /deploy directory, any .json file found in the deploy directory is considered a .CFconfig.json update, the directory is polled every 60s and automatically imported.

update the json file must called .CFConfig.json or config.json

"loggers": {
    "application": {
      "appender": "resource",
      "appenderArguments": {
        "path": "{lucee-config}/logs/application.log"
      },
      "level": "info",
      "layout": "classic"
    },
  }
}
1 Like

Oh!
I went crazy setting the log level of email logs to ERROR without using admin. :sweat_smile:
Thanks! :heart:

That drop in the deploy folder approach works great with Lucee via the installer, however, I’ve noticed a regression with docker and that’s not working

LDEV-5371 regression docker: background controller thread not running

1 Like

ok, that wasn’t a regression, phew

Turns out, the deploy folder only supports .CFConfig.json or config.json

As usual, If I’m confused, it’s a bug.

https://luceeserver.atlassian.net/browse/LDEV-5374

Lucee 6.2.1.48+ now logs an error (deploy.log) and rejects (move to the failed-to-deploy) folder any unknown or unsupported file, feedback is always nice

It also logs out when importing a config.json file

1 Like