Code Monkey home page Code Monkey logo

lumberjack's People

Contributors

0b10 avatar

Watchers

 avatar  avatar

lumberjack's Issues

Pino shows undefined message

@Level 55 a message is not logged when piped into pino-gris, even though a message key is present

The trace log also has no message present. Perhaps the same message can be attached to each logger, to make them more visually relatable - currently only the ID relates them. This will need some thought.

Set is {} when stringified

A set displays as {} when stringified (consoleMode=true), but displays the full set when consoleMode=false.

messageLevel error template error displays [[ object Set ]]

This should display the contents of allowed values instead. Use a template string for all error messages in error classes, and do proper type checking for the given parameters.

Something like: `a reusable, generic template message: ${do type checking here}`

More descriptive errors

"message is invalid" for an invalid template message isn't good enough. Check provide better messages for all errors.

Undefined message throws

An undefined message in the logger shouldn't throw, if it is defined in the template

const log = lumberjackTemplate({ message: "foo", modulePath: __filename });
log();
<srcRoot>/lib/loggers.js:92
   const message = messages.message || template.message;
                            ^
TypeError: Cannot read property 'message' of undefined
    at Object.exports.logMessage (<srcRoot>/lib/loggers.js:92:30)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.