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

Building Native CLI Apps with MatchBox & Native Fusion

Building Native CLI Apps with MatchBox & Native Fusion

MatchBox makes BoxLang practical for a classic deployment target: the single-file command-line application.

The MatchBox open beta is available at https://github.com/ortus-boxlang/matchbox.

With the MatchBox native target, you can compile a .bxs script into a standalone executable for macOS, Linux, or Windows. The generated binary includes the MatchBox VM core and your compiled BoxLang bytecode. It does not require a JVM, a separate MatchBox install, or any runtime on the target machine.

Jacob Beers
Jacob Beers
July 14, 2026