Skip to content

dnkdev/logx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📕 logx

My small library for easier custom logging implementation. File logging.

  • One or multiple files / directories
  • daily rotation
  • filesize rotation

Example implementation (daily rotation, filesize rotation): filelog
Daily : import logx.filelog.daily
Filesize: import logx.filelog.filesize

import logx.filelog.filesize as log

//...
    mut logger := log.new()!
    logger.set_level(.trace)
    
    logger.trace('Some text')
    logger.debug('Some text')
    logger.info('Some text')
    logger.note('Some text')
    logger.warn('Some text')
    logger.alert('Some text')
    logger.error('Some text')
    logger.fatal('Some text') // panic

    logger.wait() 

(log)X == eXperimental

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages