All Projects → shellscape → webpack-log

shellscape / webpack-log

Licence: MPL-2.0 license
A logger for the Webpack ecosystem

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to webpack-log

ptkdev-logger
🦒 Beautiful Logger for Node.js: the best alternative to the console.log statement
Stars: ✭ 117 (+550%)
Mutual labels:  console, log, logger
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+661.11%)
Mutual labels:  console, log, logger
debug.js
Debugger of JavaScript, by JavaScript, for JavaScript
Stars: ✭ 19 (+5.56%)
Mutual labels:  console, log, logger
Go Logger
一个简单而强大的 golang 日志工具包,支持同步和异步输出到 命令行,文件, api 接口,文件支持按文件大小,文件行数,日期切分;A simple and powerful golang logging toolkit that supports synchronous and asynchronous output to the console, file, API interfaces, file support by file size, file line number, date sharding.
Stars: ✭ 152 (+744.44%)
Mutual labels:  console, log, logger
logt
🖥️ A colourful logger for the browser
Stars: ✭ 35 (+94.44%)
Mutual labels:  console, log, logger
Loglevelnext
A modern logging library for Node.js that provides log level mapping to the console
Stars: ✭ 33 (+83.33%)
Mutual labels:  console, log, logger
Signale
Highly configurable logging utility
Stars: ✭ 8,575 (+47538.89%)
Mutual labels:  console, log, logger
datalogger
DataLogger foi projetado para ser uma biblioteca simples de log com suporte a vários providers.
Stars: ✭ 46 (+155.56%)
Mutual labels:  log, logger
log
Aplus Framework Log Library
Stars: ✭ 14 (-22.22%)
Mutual labels:  log, logger
LogDNA-Android-Client
Android client for LogDNA
Stars: ✭ 22 (+22.22%)
Mutual labels:  log, logger
sprout
Golang logging library supporting log retrieval.
Stars: ✭ 85 (+372.22%)
Mutual labels:  log, logger
JJSwiftLog
Swift log library for all platform
Stars: ✭ 51 (+183.33%)
Mutual labels:  log, logger
clue
a extremely high performance log library for android. 高性能的Android日志库
Stars: ✭ 27 (+50%)
Mutual labels:  log, logger
Lumberjackconsole
On-device CocoaLumberjack console with support for search, adjust levels, copying and more.
Stars: ✭ 205 (+1038.89%)
Mutual labels:  console, log
Tinyconsole
📱💬🚦 TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible.
Stars: ✭ 1,929 (+10616.67%)
Mutual labels:  console, log
ng-logger
Angular logger service
Stars: ✭ 65 (+261.11%)
Mutual labels:  log, logger
capybara-chromedriver-logger
Enables console.log/error/info output from Javascript feature specs running with Chromedriver
Stars: ✭ 54 (+200%)
Mutual labels:  console, logger
apollo-log
A logging extension for the Apollo GraphQL Server
Stars: ✭ 64 (+255.56%)
Mutual labels:  log, logger
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+44.44%)
Mutual labels:  log, logger
GoogleCloudLogging
Swift (Darwin) library for logging application events in Google Cloud.
Stars: ✭ 24 (+33.33%)
Mutual labels:  log, logger
webpack-log

tests cover size libera manifesto

webpack-log

A logger for the Webpack ecosystem.

Please consider donating if you find this project useful.

Requirements

This module requires an LTS Node version (v8.0.0+).

Install

Using npm:

npm install webpack-log --save-dev

Usage

Create a new logger and use it to log something wild:

const getLogger = require('webpack-log');
const log = getLogger({ name: 'webpack-batman' });

log.info('Jingle Bells, Batman Smells');
log.warn('Robin laid an egg');
log.error('The Batmobile lost a wheel');
log.debug('And the Joker got away');

And there will appear magic in your console:

console magic

Options

level

Type: String
Default: info

Specifies the level the logger should use. A logger will not produce output for any log level beneath the specified level. Valid level names, and their order are:

[
  'trace',
  'debug',
  'info',
  'warn',
  'error',
  'silent'
]

For example, If a level was passed as { level: 'warn'} then only calls to warn and error will be displayed in the terminal.

name

Type: String
Default: <webpack-log>

Specifies the name of the logger to create. This value will be part of the log output prefix.

timestamp

Type: Boolean
Default: false

If true, the logger will display a timestamp for log output, preceding all other data

unique

Type: Boolean
Default: true

If false, the logger will use cached versions of a log with the same name. Due to the nature of the webpack ecosystem and multiple plugin/loader use in the same process, loggers are created as unique instances by default.

Meta

CONTRIBUTING

LICENSE (Mozilla Public License)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].