galacta-logger

Simple logger for rust. This logger provide detailed debug information(logged time, log level, file path, ilne number, module path and function name) of project without initialization.

Usage

``` use galactalogger::{self,GalactaLogger,LevelFilter,prelude::*}; /// First initialize logger. /// You may set "GLOG_LEVEL" environment variable /// If environment variable is set, argument of init function will be ignored GalactaLogger::init(LevelFilter::Trace);

/// These are logs with specified target(unrecommended) error!("This is errror"); warn!(target: "target","This is warning"); info!("This is info"); debug!("This is debug"); trace!("This is trace");

/// These are logs without specified target or initializations(recommended) gerror!("This is errror"); gwarn!("This is warning"); ginfo!("This is info"); gdebug!("This is debug"); gtrace!("This is trace"); ```