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