For node.js
Use frontail for logging
https://www.npmjs.com/package/frontail
For Python -- use Cutelog
https://pypi.org/project/cutelog/
In NodeJs
for using frontail we need to use log the logs in a file
for logging logs to file , we will use winston
Using winston
https://www.npmjs.com/package/winston
Eg. of using winstonconst { createLogger, format, transports } = require('winston');
const { combine, timestamp, label, prettyPrint } = format;
const logger = createLogger({
level: 'info',
format: format.json(),
transports: [
//
// - Write to all logs with level `info` and below to `combined.log`
// - Write all logs error (and below) to `error.log`.
//
new transports.File({ filename: 'error.log', level: 'error' }),
new transports.File({ filename: 'combined.log' })
]
});
logger.log({
level: 'info',
message: 'What time is the testing at?'
});
Use frontail for logging
https://www.npmjs.com/package/frontail
For Python -- use Cutelog
https://pypi.org/project/cutelog/
In NodeJs
for using frontail we need to use log the logs in a file
for logging logs to file , we will use winston
Using winston
https://www.npmjs.com/package/winston
Eg. of using winstonconst { createLogger, format, transports } = require('winston');
const { combine, timestamp, label, prettyPrint } = format;
const logger = createLogger({
level: 'info',
format: format.json(),
transports: [
//
// - Write to all logs with level `info` and below to `combined.log`
// - Write all logs error (and below) to `error.log`.
//
new transports.File({ filename: 'error.log', level: 'error' }),
new transports.File({ filename: 'combined.log' })
]
});
logger.log({
level: 'info',
message: 'What time is the testing at?'
});
Had a wonderful time while reading your article. Thanks admin.
ReplyDeleteJava Training in Chennai
ReactJS Training in Chennai
AngularJS Training in Chennai
Python Training in Chennai
Python Training institute in Chennai
I read Many Post about Python but Your post really very Unique and Nice Thanks for Sharing a Very Informative Post
ReplyDeletePython training course in Delhi
Python training course in Noida
Python training course in Gurgaon
There is lots of post about Python but Your Post way of Writing and knowledgeable information is So Good and Unique. Keep Writing
ReplyDeletePython with Machine Learning Courses in Delhi
Python with Machine Learning Courses in Noida
Python with Machine Learning Courses in Gurgaon
It is really a great and useful piece of info.
ReplyDeleteFull Stack Online Training
There is lots of Post about Python But your way of Writing is so Good & Knowledgeable. Thanks for Sharing a Nice & Informative Information
ReplyDeletePython Training in Delhi
Python Training in Noida
Python Training in Gurgaon
Thanks for sharing such a great blog Keep posting..
ReplyDeletepython Training in Gurgaon
python Course in Gurgaon
python Training institute in Gurgaon
Your blog is interesting. Thanks for sharing this wonderful blog with us.
ReplyDeleteAngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery
good blog gained a knowledge from this
ReplyDeleteFull Stack Training in Chennai | Certification | Online Training Course | Full Stack Training in Bangalore | Certification | Online Training Course | Full Stack Training in Hyderabad | Certification | Online Training Course | Full Stack Training in Pune | Certification | Online Training Course | Full Stack Training | Certification | Full Stack Online Training Course
This blog is very useful it include very knowledgeable information. Thankyou for sharing this blog with us. If anyone want to experience certificate in bangalore can call at 9599119376 or can visit https://experiencecertificates.com/experience-certificate-provider-in-chennai.html
ReplyDelete