JSPM

@loggydev/loggy-node

0.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q79225F
  • License ISC

just some super simple and pretty logs

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@loggydev/loggy-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Loggy

    A simple lightweight easy to use logger trying to make logs look a little prettier.

    Install Loggy

    npm install @loggydev/loggy-node

    Init Loggy

      const loggy = CreateLoggy({
        level: "info", // debug, info, warn, or error
        identifier: "my-app", // an identifier for your application or service
        color: true, // enable colors
        compact: false, // compact mode for json objects
        timestamp: true // show the timestamp in the log message
      });
    
      loggy.log("This is a log message");
      loggy.info("This is an info message");
      loggy.warn("This is a warn message");
      loggy.error("This is an error message");

    Simple as that!