Logbox Issue with fileMaxSize

I am running ColdBox 3.5.2 with the following log configuration in my Coldbox.cfc:

// LogBox DSL
logBox = {

// Define Appenders
appenders = {
rollingFile = {
class=“coldbox.system.logging.appenders.AsyncFileAppender”,
levelMax=“WARN”,
levelMin=“FATAL”,
properties={
fileName=“INDURE_Mobile”,
filePath="/#appMapping#/…/…/…/log",
autoExpand=“true”,
fileMaxSize=“3000”,
fileMaxArchives=“5”
}
}
},
root = {levelMin=“FATAL”, levelMax=“INFO”, appenders="*"}
};

The issue I’m seeing is that it is not honoring the fileMaxSize for archive settings. Per the documentation (as I understand it), fileMaxSize=3000 should limit the log to approx. 3MB. My log is now 15MB. Does anyone know what I’m missing here?

Cheers!

Kevin S. Anderson

Intelligent Software Solutions Inc.

You are using the AsyncFileAppender which does not use those properties. You probably want the AsyncRollingFileAppender .

http://wiki.coldbox.org/wiki/LogBox.cfm#AsyncRollingFileAppender_.26_RollingFileAppender

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Sheese… Could not see the forest for the trees, I guess. Thanks, Brad!!!

Kevin S. Anderson
INDURE Team Software Engineer
Intelligent Software Solutions Inc.
Global Enterprise Solutions Division
Phone: 719.452.7456 | Cell: 719.930.2599
Email: kevin.anderson@issinc.com