Socket
Book a DemoInstallSign in
Socket

loggaby

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loggaby

📝 A simple, lightweight and customizable logger.

4.0.3
latest
Source
npmnpm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Loggaby

📝 A simple, lightweight and customizable logger.

GitHub license GitHub stars
Loggaby is the simple, lightweight and minimal logger.
It has 1 goal and strives for it well: Posting nice looking logs to your terminal (or wherever you want, see the examples for details)

Preview
How it looks for default.

PS: It's also customizable (highly so)! From how it looks, to the log destination.
Preview

Table of Contents

Install

npm install loggaby

Or with Yarn:
yarn add loggaby

Examples

Provided Here.

Documentation

new Loggaby(options)

The Loggaby constructor, which creates a new Loggaby instance.

  • options {Object}
    • debug {Boolean | String} Whether to print debug messages. Can be a boolean or 'auto'. (Default: true)
    • format {String} Format for how logs should look (Default: '{grey}{time}{reset} {level} > ')
    • levels {Object[]} Additional custom levels to provide.
      • name {String} Name of the level that appears in the logs.
      • color {String} Color of the level name. Accepted values are a hex value or named colors.
      • debug {Boolean} Whether this level will be hidden when options.debug is false.
      • fatal {Boolean} Whether to make the level name and message bold and underline (to be noticeable).
      • call {String} Name of the function to use this level.
    • transports {Object[]} (An array of objects or specifically transport instances) What transports to log to. An example is provided above. (Default: [TerminalTransport])

Default Levels

debug, log, warn, error and fatal
You can log with Loggaby.<Level>().

License

Loggaby is licensed under the MIT license.
Read here for more info.

A Luvella project.

Keywords

color

FAQs

Package last updated on 19 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.