How to use the js-logger.OFF function in js-logger

To help you get started, we’ve selected a few js-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github simplygreatwork / godsend / examples / shared / server / Server.js View on Github external
initialize: function(properties) {

      Logger.setLevel(Logger.INFO);
      if (false) Logger.setLevel(Logger.OFF);
      Object.assign(this, properties);
      if (this.secure) {
         this.options = {
            key: fs.readFileSync('/home/ubuntu/workspace/trust/server.key.private.pem'),
            cert: fs.readFileSync('/home/ubuntu/workspace/trust/server.cert.pem'),
            requestCert: false
         };
      }
   },
github simplygreatwork / godsend / src / Logging.js View on Github external
initializeLogger: function() {
		
		Logger.useDefaults();
		Logger.setLevel(Logger.INFO);
		this.initializeInternalLevels(Logger.INFO);
		this.initializeInternalLevels(Logger.OFF);
		Logger.get('exchange-secure').setLevel(Logger.OFF);
		Logger.get('exchange-learning').setLevel(Logger.OFF);
	},
github simplygreatwork / godsend / src / Logging.js View on Github external
initializeLogger: function() {
		
		Logger.useDefaults();
		Logger.setLevel(Logger.INFO);
		this.initializeInternalLevels(Logger.INFO);
		this.initializeInternalLevels(Logger.OFF);
		Logger.get('exchange-secure').setLevel(Logger.OFF);
		Logger.get('exchange-learning').setLevel(Logger.OFF);
	},