Giter Site home page Giter Site logo

logging's Introduction

Hi there ๐Ÿ‘‹

dylang's GitHub stats

I enjoy working on open source, but the work I've been doing for the last five years at Medallia is not yet open source.

Developer, mentor, and leader with a passion for developer happiness and efficiency, building maintainable and testable code, and the fast moving world of JavaScript, TypeScript and Node.

Passionate and experienced with regards to tooling, security, performance, E2E testing, modern JavaScript best practices.

Contributor to open source projects like npm, Yarn, Jest.

I created these years ago when nothing like them existed. They're still fairly well used!

  • xml
  • rss
  • shortid

Fan of finding problems and solving them, monorepos, TypeScript, and, whenever possible, including chuckle-worthy gifs in code reviews.

logging's People

Contributors

dylang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

logging's Issues

TypeError: Illegal access to a strict mode caller function.

I got this :

/home/bbigras/project/logging/lib/logging.js:83
: (args.name && args.name != 'forEach' ? args.name : calledFrom(args.caller, c
                                                                    ^
TypeError: Illegal access to a strict mode caller function.
    at calledFrom (/home/bbigras/project/logging/lib/logging.js:83:107)
    at calledFrom (/home/bbigras/project/logging/lib/logging.js:83:92)
    at calledFrom (/home/bbigras/project/logging/lib/logging.js:83:92)
    at calledFrom (/home/bbigras/project/logging/lib/logging.js:83:92)
    at /home/bbigras/project/logging/lib/logging.js:97:74
    at /home/bbigras/node-ftp/app.js:323:23
    at [object Object].parse (/home/bbigras/project/jsftp/jsftp.js:289:13)
    at onElement (/home/bbigras/project/jsftp/node_modules/streamer/streamer.js:184:36)
    at Socket.<anonymous> (/home/bbigras/project/jsftp/jsftp.js:239:25)
    at Array.forEach (native)

/home/bbigras/node-ftp/app.js:323:23 is

log("- Disconnected");

Other uses of the log() command worked fine.

createLogger is not a function

Got TypeError: createLogger is not a function in javascript. Same code works in typescript tho.

Code:

import createLogger from 'logging';

const logger = createLogger('FeatureName');

logger.info('Interesting');

logging 3.3.0
nodejs 16.15.1

Output is the same as console.log

Following the instructions (in an Expo project running with expo start --dev-client) I get output that is indistinguishable from console.log (no colors, no date, no feature).

Some formatting chars show up in message

Formatting characters inconsistently show up in the message. For example, (INFO) blah shows up as INFO blah with "INFO" in cyan, as expected. However !ERROR! blah appears exactly as written - !ERROR! blah which is inconsistent with the previous behavior. The problem appears here and is rather simple to fix - you only need to call substring as you do with the other colors.

Bolding does not work

Contrary to the last commit made, bolding a color by doubling !! doesn't work.

Using Node.js v5.5.0 on OSX:
screen shot 2016-02-03 at 12 28 40 am

Support for log levels?

It would be a nice addition if the app paid attention to the environment variables DEBUG, LOG_LEVEL, and LOG_DEBUG.

i.e. LOG_LEVEL=info LOG_DEBUG=myapp,myapi node index.js

Using that example it would cause only INFO and above to be output and only from 'myapp' or 'myapi'.

TypeError: createLogger is not a function

Hi! I thought I'd test-drive this nice looking logging module. However, ran into an issue from the start go with node v6.10.1 and logging v3.2.0 via npm.

const createLogger = require('logging');  
const log = createLogger('xmodem');

This results in:

const log = createLogger('xmodem');
            ^
TypeError: createLogger is not a function

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.