BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Missing line break on file appender control string

Description

When logging using this configuration, there is no line break on the first message:

logBox = { // Define Appenders appenders : { actionLogger: { name='actionLogger', class="coldbox.system.logging.appenders.FileAppender", properties={ filePath="logs", filename='actionLog', autoExpand=true, fileMaxArchives=1, fileMaxSize=3000, async=true } }, coldboxTracer : { class : "coldbox.system.logging.appenders.ConsoleAppender" } }, // Root Logger root : { levelmax : "INFO", appenders : "coldboxTracer" }, // Implicit Level Categories // info : [ "coldbox.system" ], categories: { 'memberLog': { appenders: 'actionLogger' } } };
property name="logger" inject="logbox:logger:memberLog"; + logger.info("TESTING") == "Severity","Appender","Date","Time","Category","Message""INFO","actionLogger","11/19/2020","17:57:45","","TESTING" (https://www.screencast.com/t/3DiUHSuJtkU9) ```

Additionally, if I uncomment the `info : [ "coldbox.system" ],` line, it logs system information into this file, which I don't want. I just want my app logging information in there. I would like to add an additional file log to track system info (and qb debugging info into yet another file) but I can't seem to direct output where I expect it to go reliably even after reading the documentation multiple times.

Activity

Show:

Brad WoodNovember 20, 2020 at 4:17 PM

I assume the issue is the lack of a line break when the header line is written. seems simple enough.

Luis MajanoNovember 20, 2020 at 3:43 PM

can you assist on this.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created November 19, 2020 at 6:07 PM
Updated November 25, 2020 at 9:56 PM
Resolved November 25, 2020 at 9:56 PM

Flag notifications