Giter VIP home page Giter VIP logo

typescript-logger's Introduction

ArturoRis's github stats

Hi there ๐Ÿ‘‹๐Ÿผ I'm Fabio Siliberto

Linkedin Badge Gmail Badge


typescript-logger's People

Contributors

silibdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

typescript-logger's Issues

Reference Error window is not defined

Using the typescript-logger in a node/express project the window. So it does not work in node

If the logger depends on the window object, the logger README.md file should not that it should not be used in a node-server environment

ts-node-dev --respawn --transpileOnly ./src/server.ts

Using ts-node version 8.9.0, typescript version 3.8.3
ReferenceError: window is not defined
at C:\...\node_modules\typescript-logger\build\loggerManager.js:102:9
at C:\...\node_modules\typescript-logger\build\loggerManager.js:112:7
at Object.<anonymous> (C:\...\node_modules\typescript-logger\build\loggerManager.js:114:2)

Bad parameters management

When you call the logger with parameters, the display is not as expected :

this.logger('First parameter : %o, second one : %o', 42, 'foo'); 

the result must be something like :

First parameter : 42, second one : foo

but we get ๐Ÿ‘

First parameter : array[2], second one : %o

A correction, in logger.js :

Logger.prototype.warn = function (name) {
   var data = [name, level_1.Level.WARN];
   for (var _i = 1; _i < arguments.length; _i++) {
       data.push(arguments[_i]);
   }
   return this._logMessage.apply(this, data);
};

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.