How to use the @awesomeeng/awesome-log.start 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 / zephjs / src / cli / commands / Serve.js View on Github external
execute(args,options) {
		Log.start();

		let server = new AwesomeServer();

		server.addHTTPServer({
			hostname: "localhost",
			port: options.port
		});
		server.route("*","*",(path,request)=>{
			Log.access("Request "+request.method+" "+request.path+" from "+request.origin+".");
		});

		let zeph = AwesomeUtils.Module.resolve(module,"../../Zeph.js");
		if (!AwesomeUtils.FS.existsSync(zeph)) {
			console.error("Zeph.js was not found in the Zeph.js project root and is required. Please try reinstalling ZephJS from npm.");
			process.exit(1);
		}

@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