Skip to content

dnkdev/logx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

833588c · Oct 24, 2023

History

13 Commits
Sep 17, 2023
Oct 24, 2023
Oct 24, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 11, 2023
Jul 28, 2023
Jul 11, 2023

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