Coder Social home page Coder Social logo

now-logs's People

Contributors

berzniz 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  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  avatar

now-logs's Issues

Process keeps running even after ctrl+c

I'm not 100% sure how I did it unfortunately but the first time I ran the logs tool I didn't put my secret string in quotes. It contained a bunch of symbols like carets, dollar signs etc eg:

now-logs 234567^&*$^&$

I'm running under zsh.

Now occasionally when I go back to terminal I can see the Connected, showing logs for "xyz" over and over again. I'm not totally sure yet how to kill it.

If you have some ideas what to try it would be much appreciated.

data.replace is not a function

[Ubuntu 15.04]
When i started the logging on terminal.


Connecting to https://logs.now.sh ...
Connected, showing logs for "test"
TypeError: data.replace is not a function
    at Socket.<anonymous> (/usr/lib/node_modules/now-logs/bin/logs.js:43:34)
    at Socket.Emitter.emit (/usr/lib/node_modules/now-logs/node_modules/component-emitter/index.js:133:20)
    at Socket.onevent (/usr/lib/node_modules/now-logs/node_modules/socket.io-client/lib/socket.js:270:10)
    at Socket.onpacket (/usr/lib/node_modules/now-logs/node_modules/socket.io-client/lib/socket.js:232:12)
    at Manager.<anonymous> (/usr/lib/node_modules/now-logs/node_modules/component-bind/index.js:21:15)
    at Manager.Emitter.emit (/usr/lib/node_modules/now-logs/node_modules/component-emitter/index.js:133:20)
    at Manager.ondecoded (/usr/lib/node_modules/now-logs/node_modules/socket.io-client/lib/manager.js:332:8)
    at Decoder.<anonymous> (/usr/lib/node_modules/now-logs/node_modules/component-bind/index.js:21:15)
    at Decoder.Emitter.emit (/usr/lib/node_modules/now-logs/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20)
    at Decoder.add (/usr/lib/node_modules/now-logs/node_modules/socket.io-parser/index.js:256:14)

Prefix logs with deployment ID and/or now URL

Thoughts on prefixing log messages with the deployment ID or, better yet, the now URL? These are environment variables that you could pass along as part of the socket.io message and would help to see which log message belongs to which deployments when quickly iterating on a project.

Can't get deployed site logs to show in terminal

Maybe I'm just doing something wrong here? But I'm able to see logs from my site while in localhost, but on the deployed site, logs do not show.

I installed the CLI and the npm package into my app, and added the following line into next.config.js:

require('now-logs')(process.env.LOGS_SECRET);

And I set up the environment variable correctly and the Now secret, as I've done with all the others.

Appreciate any help here :)

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.