rslog 0.1.1

A lightweight logging library for Rust built entirely using the standard library with zero external dependencies.
Documentation
//! # rslog
//! 
//! A lightweight logging library for Rust built entirely using the standard library with zero external dependencies.
//! 
//! ## Features
//! 
//! - **Zero Dependencies**: Pure standard library implementation
//! - **Multiple Log Levels**: Debug, Info, Warn, Error, Critical
//! - **Multiple Output Targets**: Console and file output simultaneously
//! - **Async Writing**: Background thread for non-blocking file writes
//! - **Log Rotation**: Size-based and time-based rotation support
//! - **Multiple Output Formats**: Text, JSON, and custom patterns
//! - **Configurable**: Flexible configuration options
//! 
//! ## Quick Start
//! 
//! ```rust
//! use rslog::{Logger, LogLevel};
//! 
//! // Get the logger instance
//! let logger = Logger::get_instance();
//! 
//! // Log messages
//! logger.info("Application started");
//! logger.debug("Debug message");
//! logger.warn("Warning message");
//! logger.error("Error message");
//! logger.critical("Critical error");
//! ```
//! 
//! ## Custom Configuration
//! 
//! ```rust
//! use rslog::{Logger, LogLevel, ConfigBuilder, OutputFormat};
//! 
//! let config = ConfigBuilder::new()
//!     .log_dir("logs")
//!     .file_prefix("app_")
//!     .level(LogLevel::Info)
//!     .output_format(OutputFormat::Json)
//!     .build();
//! 
//! Logger::init_with_config(config);
//! let logger = Logger::get_instance();
//! logger.info("Hello, world!");
//! ```
//! 
//! ## Log Rotation
//! 
//! ```rust
//! use rslog::{Logger, ConfigBuilder, RotationStrategy, RotatorConfig};
//! 
//! let config = ConfigBuilder::new()
//!     .rotation(RotatorConfig {
//!         strategy: RotationStrategy::SizeBased(10 * 1024 * 1024), // 10MB
//!         max_files: 5,
//!         compress_old_files: false,
//!     })
//!     .build();
//! 
//! Logger::init_with_config(config);
//! ```

pub mod level;
pub mod formatter;
pub mod writer;
pub mod logger;
pub mod config;
pub mod rotator;
pub mod color;

pub use level::LogLevel;
pub use logger::Logger;
pub use config::Config;
pub use config::ConfigBuilder;
pub use formatter::OutputFormat;
pub use rotator::{RotationStrategy, RotatorConfig};
pub use writer::{AsyncWriterConfig, LogEntry};
pub use color::{Color, LogColorScheme, ColorFormatter};