Coder Social home page Coder Social logo

logplease's People

Contributors

alexbadm avatar dignifiedquire avatar haadcode avatar jobando89 avatar ralphtheninja 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

logplease's Issues

Fail to build with React

Hi.

When I try to run yarn build in my own project I get this error:
`$ yarn build
yarn run v1.9.4
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

./node_modules/logplease/src/index.js:7 

Read more here: http://bit.ly/2tRViJ9

error Command failed with exit code 1.
`
Following the above link React recommend some actions to take. Are those recommendations valid?

Are you able to publish logplease pre-compiled?

Thanks
Bård

Run tests in the browser

It would be great to run the tests in the browser too.

This should be fairly straight-forward to add, so if anyone wants to PR this, I'd be happy to help to get it merged.

Colors do not work properly in an electron renderer process

Steps to reproduce:

const Logger = require('logplease');
const log = Logger.create('[example]');
log.info('Colors should renderer properly in electron browser window');
  • open main.js and uncomment the line that says mainWindow.webContents.openDevTools()
  • npm install
  • npm start

Expected:
Log should have appropriate colors

Actual:
Log appears to be trying to use terminal style colors

screen shot 2018-07-22 at 8 17 29 pm

Do not log to stdout

In documentation you mentioned it is possible to "Log messages to stdout or a file".
How can I disable logging to stdout/console?
Thank you.

Can't log a message with an object

That is, when I do a try catch, I want to log the "e" of the try catch. I can create two log messages in a row like this but the second one is unlabled which is confusing. I can't use JSON.stringify because of circular reference errors.

 } catch (e) {
    logger.error(`server.ts:getSessionUrls errored:${e.message}`);
    logger.error(e);
}

Missing ES5 cjs build

Hi! First of all, thank you for this great library!

We are using your library on a package of our own, and we have customers that download our library from NPM with yours as a dep.
Thing is that some people have applications that doesn't always run on environments with ES6 support. As your main file contains ES6 code, the require of logplease is causing issues to them.

Would you mind if I submit a PR adding a build with the transpiling? I can also update the webpack configs to work with Webpack 2 in the process (and of course, I'll update the docs).

This is a great library and we don't want to move away just for this tiny issue.

Thanks in advance!

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.