![header.png Preview Image](/post/better-practices-console-log-pnpjs/header_huce0d4e862ee6f0bff4a6b317b7883698_3830491_320x180_resize_q75_h2_box_3.webp)
I was recently asked by a conference attendee to help him understand when to use the @pnp/logging package that we ship with PnPjs. This is an excellent question, and I’ve addressed it somewhat before in a previous post called Resolve to Log. All of the guidance I included about the package in that post still applies, however the examples references V2 of the library. To recap there is the ability to create a ConsoleLogger, a FunctionalLogger, or a custom listener class and then register that listener to the PnPjs timeline via the PnPLogging behavior. [Read More]