text: #!/usr/bin/env node
  
  var moment = require( 'moment' );
  var opts = {
      logDirectory: __dirname + '/../logs',
      fileNamePattern: 'apptest-<date>.log',
      formatDate(ts) {
          return moment(ts).format('YYYY.MM.DD-HHa');
      },
  };
  
  var log = require('../lib/SimpleLogger').createRollingFileLogger( opts );
  
  // write some stuff...
  log.trace('this is a simple trace log statement (should not show)');
  log.debug('this is a simple debug log statement (should not show)');
  log.info('this is a simple info log statement/entry');
  log.warn('this is a simple warn log statement/entry');
  log.error('this is a simple error log statement/entry');
  log.fatal('this is a simple fatal log statement/entry');
  
  log.info('set the level to all');
  log.setLevel('all');
  log.trace('this is a simple trace log statement (should show)');
  log.debug('this is a simple debug log statement (should show)');
  
  var appender = log.getAppenders()[0];
  console.log('write to file: ', appender.__protected().currentFile );
  
  // rolling file writer uses interval, so we need to exit 
  setTimeout(function() {
      console.log('exiting...');
      process.exit( 0 );
  }, 1000);
  
  