BoxLang 🚀 A New JVM Dynamic Language Learn More...
Copyright Since 2005 ColdBox Platform by Luis Majano
and Ortus Solutions, Corp
www.coldbox.org | www.ortussolutions.com
Because of God's grace, this project exists. If you don't like this, then don't read it, its not for you.
"Therefore being justified by faith, we have peace with God through our Lord Jesus Christ: By whom also we have access by faith into this grace wherein we stand, and rejoice in hope of the glory of God. And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; And patience, experience; and experience, hope: And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. ." Romans 5:5
Enterprise Logging Engine for Modern Applications
LogBox is a powerful, flexible logging framework designed for two modern programming languages:
✨ Use LogBox Standalone - While part of the ColdBox Platform, LogBox can be installed and used independently in ANY BoxLang or CFML application without requiring the full ColdBox framework.
19+ Years of Excellence - Since 2006, LogBox has been battle-tested in enterprise environments worldwide, evolving with modern development practices and industry standards.
Professional Open Source - Backed by Ortus Solutions, LogBox provides the reliability and support that businesses demand. With dedicated full-time development, comprehensive documentation, and professional services, enterprises can confidently build mission-critical applications on LogBox.
Enterprise Ready - Trusted by Fortune 500 companies and organizations globally, LogBox delivers the stability, performance, and long-term support that enterprise applications require. Learn more at www.coldbox.org.
# Install LogBox independently
box install logbox
# Or with ColdBox Platform
box install coldbox
// Create LogBox instance
logBox = new logbox.system.logging.LogBox();
// Simple configuration
config = {
appenders: {
console: {
class: "logbox.system.logging.appenders.ConsoleAppender"
},
file: {
class: "logbox.system.logging.appenders.RollingFileAppender",
properties: {
filePath: "logs/",
fileName: "application.log",
maxFileSize: "10MB",
maxFiles: 5
}
}
},
root: {
levelMin: "INFO",
appenders: "*"
}
};
// Configure and get logger
logBox.configure( config );
logger = logBox.getLogger( "MyApp" );
// Start logging
logger.info( "Application started successfully" );
logger.error( "An error occurred", exception );
// Inject logger in any ColdBox component
property name="log" inject="logbox:logger: {this}";
function index( event, rc, prc ) {
// Use logger in handlers
log.info( "User #getUserId()# accessed homepage" );
log.debug( "Request data", rc );
}
# Standalone LogBox
box install logbox
# With ColdBox Platform
box install coldbox
# Bleeding Edge
box install logbox@be
Visit ForgeBox for additional installation options.
Enhance your LogBox development experience with our official VS Code extensions:
Download from VS Code Marketplace | Open VSX Registry
Features:
Download from VS Code Marketplace | Open VSX Registry
Complete development suite including:
LogBox provides a comprehensive logging architecture:
Use Independently - LogBox is designed as a standalone library that can be used in ANY BoxLang or CFML application without requiring the full ColdBox framework. This modular architecture allows you to:
BoxLang (Recommended)
CFML Support
Comprehensive documentation is available at: https://logbox.ortusbooks.com
LogBox is a professional open source project. Support us by:
// Different log levels
logger.fatal( "Critical system failure" );
logger.error( "Database connection failed", exception );
logger.warn( "Memory usage is high" );
logger.info( "User #getUserId()# logged in" );
logger.debug( "Processing request data", requestData );
logger.trace( "Detailed execution flow" );
// Structured logging with extra data
logger.info( "Order processed", {
orderId: order.getId(),
customerId: customer.getId(),
amount: order.getTotal()
} );
Apache License, Version 2.0 - See LICENSE file for details.
The ColdBox websites, logos and content have separate licensing and are separate entities.
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
$
box install logbox