Closed miisaka closed 5 years ago
how come we didnt use Adonis's Logger ( i get that it uses WinstonJs underneath, but i meant why did we install it seperately, require it seperately ) https://adonisjs.com/docs/4.1/logger
how come we didnt use Adonis's Logger ( i get that it uses WinstonJs underneath, but i meant why did we install it seperately, require it seperately ) https://adonisjs.com/docs/4.1/logger
Because AdonisJs' support for the file transport logging is mediocre with little documentation. Its just a wrapper on top of Winston but with a different config syntax that is barely documented. I spent a solid 2 hours trying to configure the built in one to behave the way I want it but to no success. Many other people seem to have the same complain as me so I decided to just use WinstonJs directly.
I am however using Adonis' built in console logger to log stuff to the console.
story #192
Example sample log: