Skip to content

TurboWarp/nanolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@turbowarp/nanolog

minilog replacement for TurboWarp.

  • Extremely small: less than 1KB, no dependencies
  • Does not use leading-zero octal literals (syntax error in strict mode)
  • Does not interact with local storage, cookies, etc. (minilog does)
  • Uses the default log styles from your browser; doesn't try to be smart
  • No wrapper functions, so stack traces from your browser always point to the right spot
const nanolog = require('@turbowarp/nanolog');

const log = nanolog('renderer');
log.debug('debug');
log.info('info');
log.warn('warn');
log.error('error');