sjl 0.5.1

Simple JSON Logger
Documentation
use std::sync::atomic::AtomicU64;

/// Default size of the channel - max messages you can send at one time
pub const DEFAULT_BUFFER_SIZE: usize = 1024;

/// Default number of log messages to batch before flushing
pub const DEFAULT_BATCH_SIZE: usize = 50;

/// Default duration in milliseconds to wait before flushing a batch
pub const DEFAULT_BATCH_DURATION_MS: u64 = 50;

/// Default format for timestamps: 2025-10-23T15:30:45.123Z
pub const DEFAULT_TIMESTAMP_FORMAT: &str = "%Y-%m-%dT%H:%M:%S%.3fZ";

/// Default key name for timestamps. Default is `timestamp`
pub const DEFAULT_TIMESTAMP_KEY: &str = "timestamp";

/// Default delay beore warning if the buffer size is full and should be increased, in milliseconds
pub const DEFAULT_BUFFER_FULL_LAST_WARN_MS: u64 = 1000;