Blog

ColdBox 4.0 and Async Loggers

Brad Wood February 05, 2015

Spread the word

Brad Wood

February 05, 2015

Spread the word


Share your thoughts

The Asynchronous loggers in LogBox have been removed in preference to the new async property that can be used in any logger. The affected loggers are:

  • AsyncDBAppender -> DBAppender
  • AsyncFileAppender -> FileAppender
  • AsyncRollingFileAppender -> RollingFileAppender

You can just declare each appender but add an async=true property to each when declaring.


Old config:


logBox = {
    appenders = {
        coldboxTracer = {
		class = "coldbox.system.logging.appenders.AsyncRollingFileAppender",
		properties = {
			filePath = "/logs",
			fileMaxArchives = 5,
			fileMaxSize = 3000
 		}
	}
    }
};

New Config:


logBox = {
    appenders = {
        coldboxTracer = {
		class = "coldbox.system.logging.appenders.RollingFileAppender",
		properties = {
			filePath = "/logs",
			fileMaxArchives = 5,
			fileMaxSize = 3000,
			async = true
 		}
	}
    }
};

 

Add Your Comment

Recent Entries

BoxLang AI 3.4.0: Gateways, Human-in-the-Loop, and a Full Security Stack

BoxLang AI 3.4.0: Gateways, Human-in-the-Loop, and a Full Security Stack

BoxLang AI 3.4.0 is one of the biggest releases in the module's history, and it is built around a single theme: trust. Every agent you ship eventually needs a human to step in, and every agent that reads untrusted content is a target for prompt injection. This release gives you both a proper answer.

Luis Majano
Luis Majano
September 01, 2026