I am facing an issue in nodejs where I have to print the username in the logs in the Metadata. Each request is having its own username and nodejs being async its overriding the username property that i have created for the singleton log.
I have read about continous-local-storage, but I am looking for a simpler solution without requiring any external libraries.
Is it advisable to create a seperate log instance per each request?
P.S.: I am very new to Node js!!