Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ah yes, a Factory .. a Client side factory .. a Client Side Logging ... Factory ....
Everything is terrible! -
@djsumdog to be fair, client side logging tends to be substantially more complicated than server side logging, at least as far as the application itself is concerned.
-
@djsumdog as @lorentz correctly noted, there's a certain amount of concerns you need to take into account when you're performing client side logging (where am I supposed to log? It changes depending on the date, on the log level and the part of the application involved), so it's reasonable to have a single file handling the creation of the correct logger for you.
What's not as clear is, however, the //TODO comment warning me to be careful when using webpack...?
Related Rants
What is this even supposed to mean
rant
webpack
careful