Function or API to get log file location

In coldfusion the admin api allows to get the location of the log directory, i.e.

createObject(“component”,“cfide.adminapi.administrator”).login(“#strPwd#”);
var myObj = createObject(“component”,“cfide.adminapi.debugging”);
result = myObj.getLogProperty(“LogDirectory”);

Does Lucee have anything similar?

We have other apps not running on coldfusion where we want them to write to same log file directory. (We pass the app the log location).

Any help would be appreciated.

We have directory placeholders you can use

expandPath("{lucee-config}/logs/") should do the trick!

The markdown ext is missing table support, so that page is a bit messy

1 Like