berzniz / now-logs Goto Github PK
View Code? Open in Web Editor NEWrealtime logging for now - https://logs.now.sh
realtime logging for now - https://logs.now.sh
[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)
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.
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.
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.