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:
- BoxLang 🥇 - A modern JVM language owned and directed by the ColdBox team
- CFML (ColdFusion) - Full support for existing enterprise applications
✨ 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.
- 🔧 Standalone Ready - Use independently in any BoxLang/CFML application
- 📊 Multiple Appenders - File, database, email, console, and custom appenders
- 🎯 Structured Logging - Support for JSON, XML, and custom log formats
- ⚡ High Performance - Asynchronous logging with minimal overhead
- 🔄 Log Rotation - Automatic file rotation and archiving
- 📈 Scalable - From single application to distributed enterprise systems
- 🛡️ Thread-Safe - Production-ready concurrent logging
- 🔌 Extensible - Custom appenders, layouts, and filters
- 🎛️ Fine-Grained Control - Category-based log levels and filtering
- 📋 Rich Layouts - Pattern, JSON, XML, and custom formatting
# 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@beVisit 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:
- LogBox configuration scaffolding
- Built-in LogBox commands integration
- Syntax highlighting for log configurations
Download from VS Code Marketplace | Open VSX Registry
Complete development suite including:
- BoxLang language server with IntelliSense
- Integrated debugging for log operations
- Advanced code completion for LogBox APIs
- CFML compatibility layer
LogBox provides a comprehensive logging architecture:
- LogBox - Central logging factory and configuration manager
- Logger - Individual logger instances with category-based control
- Appenders - Output destinations (file, console, database, email, etc.)
- Layouts - Message formatting and structure
- Filters - Log entry filtering and routing
- FileAppender - Simple file logging
- RollingFileAppender - Automatic file rotation and archiving
- ConsoleAppender - Console/stdout output
- DatabaseAppender - Database table logging
- EmailAppender - Email notifications for critical events
- SocketAppender - Network socket logging
- SyslogAppender - System log integration
- Custom Appenders - Build your own output destinations
- SimpleLayout - Basic message formatting
- Custom Layouts - Create your own formatting
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:
- Add enterprise logging to existing applications
- Integrate with legacy systems seamlessly
- Mix and match with other logging solutions
- Independent installation via CommandBox
BoxLang (Recommended)
- BoxLang 1.0+
- Modern JVM language with enhanced performance
- Owned and directed by the ColdBox team
CFML Support
- Adobe ColdFusion 2023+
- Lucee 5.0+
- Legacy application support
Comprehensive documentation is available at: https://logbox.ortusbooks.com
- 📖 Getting Started Guide - Your first LogBox application
- 🏗️ Configuration - Setup and configuration options
- 📝 Appenders - All available appenders
- 🎨 Layouts - Message formatting options
- 🔧 ColdBox CLI - Essential command-line tools
- 📋 API Documentation - Complete API reference
- 💻 VS Code ColdBox Extension - LogBox development tools
- 🧰 VS Code BoxLang Developer Pack - Complete BoxLang development suite
- 📖 Contributing Guide - How to contribute
- 🐛 Issue Tracker - Report bugs and request features
- 💬 Community Slack - Join the conversation
- 📺 YouTube Channel - Tutorials and presentations
- 🎓 CFCasts - CFML Video Learning Platform
- 🎓 BoxLang Academy - BoxLang Video Learning Platform
- 🏢 Enterprise Support - Professional support plans
- 🎯 Training - Official CacheBox training
- 💼 Consulting - Expert implementation services
LogBox is a professional open source project. Support us by:
- ⭐ Star this repository
- 💝 Become a Patreon
- 🏢 Enterprise Support
// 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.
- LogBox Repository: https://github.com/coldbox/coldbox-platform/tree/development/system/logging
- ColdBox Platform: https://github.com/coldbox/coldbox-platform
- ColdBox CLI: https://github.com/coldbox/coldbox-cli
- LogBox Docs: https://logbox.ortusbooks.com
- ColdBox Platform: https://coldbox.ortusbooks.com
- API Reference: https://apidocs.coldbox.org
- LogBox Issues: https://ortussolutions.atlassian.net/browse/LOGBOX
- ColdBox Framework: https://www.coldbox.org
- Ortus Solutions: https://www.ortussolutions.com/products/logbox
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
