"/logger/message file" does not work

Issue #264 resolved
dd1 created an issue

If I change “/logger/message file” to aaa.log, midas messages are still written to midas.log not to aaa.log.

It looks like the current implementation creates log file names as facility + “.log” (the usual facility is “midas”, so file name is “midas.log”), and odb “/logger/message file” is only used to extract the directory name.

Perhaps it should be renamed to “/logger/message dir”?

Also the optional date format could stored in a separate ODB entry so people see it, know about it and use it. The default should probably be “%Y” so we have per-year log files.. Something like “/logger/message file date format”.

K.O.

Comments (3)

  1. Stefan Ritt

    I removed the /logger/message file and put there a /logger/message dir. In addition, I added there a /logger/message file date format as requested.

  2. dd1 reporter

    Looks good. The code was a bit incomplete, I fixed it up - create the odb entries if they do not exist; actually do use the value returned by cm_get_path(). Closing this bug. K.O.

  3. Log in to comment