Skip to content

datafast-network/df-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DF Logger

Use

[log_level]([action_or_path_name], "message"; key1 => "value1", key2 => "value2")

use df_logger::*;
use df_logger::loggers::init_logger;

fn main() {
    init_logger();
    info!(main, "Hello, world!");
    
    // Log with key-value pairs
    debug!(main_debug, "KeyValue"; key1 => "value1", key2 => "value2");
    info!(main_info, "KeyValue"; key => "value1", key2 => "value2");
    warn!(main_warn, "KeyValue"; key1 => "value1", key2 => "value2");
    error!(main_error, "KeyValue"; key1 => "value1", key2 => "value2");
    critical!(main_critical, "KeyValue"; key1 => "value1", key2 => "value2");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages