-
Notifications
You must be signed in to change notification settings - Fork 1
Perj
Grant Carthew edited this page Oct 25, 2024
·
4 revisions
When you import
the perj
package in your code you will receive the Perj
Object. This object is required to be instantiated and does not have any static methods or properties. You must use the new
key word to create a logger object.
Because the Perj
object is exposed it makes it easy for you to extend the prototype (class) to customize your logger within your projects.
import Perj from 'perj'
const log = new Perj() // creates a logger object
Read more about the Perj constructor and the resulting loggers API. 👉