Skip to main content

init

Function init 

Source
pub fn init(env_prefix: &str) -> Result<(), Box<dyn Error + Send + Sync>>
Expand description

Initialise all library components with default settings.

This is a convenience function that:

  1. Detects the runtime environment
  2. Sets up the logger with auto-detection
  3. Loads configuration with the given env prefix

§Errors

Returns an error if logger or config initialisation fails.