How to use the @awesomeeng/awesome-log.stop function in @awesomeeng/awesome-log

To help you get started, we’ve selected a few @awesomeeng/awesome-log 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 awesomeeng / awesome-log / examples / ExampleUsage / ExampleUsage.js View on Github external
// Once initialized, we have to start the log system.
Log.start();

// Once the log system is started you can make log statement against the
// various log levels, by default they are access, error, warn, info, debug.
Log.info("This is an example log message.");
Log.info("Another log message with arguments.",1,2,3);
Log.info({
	text: "A log object.",
	red: "red",
	green: 25,
	blue: false
});

// stop logging once we are done.
Log.stop();
github awesomeeng / awesome-log / examples / ExampleCustomFormatter / ExampleCustomFormatter.js View on Github external
formatter: "my-example-formatter",
		options: {}
	}]
});

// Then everything is exactly the same as basic usage.
//
// Start the log...
Log.start();

// Log something out to it...
// See the MyExampleCustomWriter.js file for implementation details.
Log.info("This is an example log message.");

// stop when we are done.
Log.stop();
github awesomeeng / awesome-log / examples / ExampleCustomWriter / ExampleCustomWriter.js View on Github external
name: "my-writer",
		type: "my-example-writer"
	}]
});

// Then everything is exactly the same as basic usage.
//
// Start the log...
Log.start();

// Log something out to it...
// See the MyExampleCustomWriter.js file for implementation details.
Log.info("This is an example log message.");

// stop when we are done.
Log.stop();
github awesomeeng / awesome-log / examples / ExampleSubProcess / ExampleSubProcess.js View on Github external
setTimeout(async ()=>{
	children.forEach((child)=>{
		Log.releaseSubProcess(child);
		child.kill(0);
	});
	await Log.stop();
	process.exit(0);
},1000);

@awesomeeng/awesome-log

AwesomeLog is a Log System for enterprise nodejs applications. It provides a basic out of the box logging solution that is ready to go with zero configuration but also gives you a highly configurable logging solution that with the power to do your logging

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis