I’m trying to split my very long config file into multiple subfiles. I’ve seen how it’s supposed to be done in the docs but it doesn’t seem to work how I expect it to.
I use one base config file as well as one per environment and the merge seems to create duplicates or loose some values depending on how you set the options.
I run an extended Starterkit 3.3.2.
In the login controller and in the logout route I added the code to log every login and logout.
The code of the plugin runs, but the log file is not saved in the directory site\logs like my config file, but in the default directory site\kirbylogs.
It is the default directory, if I add ‘ . kirby()->option("bvdputte.kirbylog.logfolder")’ to the logged text.
The code in the controller then looks like
$kirbyLogger = kirbyLog("kirbylogin_log.log");
$kirbyLogger->log("'" . $kirby->user()->username() . "' has logged in. | " . kirby()->option("bvdputte.kirbylog.logfolder"));