Comments (26)
Did you checked the devtools console?
from iron-node.
a normal console.log
in the app does output to the devtools console. However using bunyan
with (bunyan-format)[https://github.com/thlorenz/bunyan-format] as the output stream does not. Though of course bunyan
normally does log the output.
from iron-node.
Not very beautiful but I got output to terminal console
I have noticed some other things regarding to that as described at electron/electron#2390
from iron-node.
@BlackBarn do you see any output like on my console? Otherweise I would like to change the issue title.
from iron-node.
My guess is that the isbrowser method does not work correct within electron environment.
https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L407 can you clarify this?
from iron-node.
Sorry, I was preoccupied there for awhile. I'm glad it seems to be working and sorry for causing any problems. When I have time i'll dig into my implementation a bit more to see if I can find my issue. Thanks for all your work on the project!
from iron-node.
Absolutely no problem, feel free to submit issues! Well I am not shure it isjust a guess. So if you want. Would be nice to keep us up-to-date here.
from iron-node.
I'm having the same issue. Logs that are piped to process.stdout
do not show up in my terminal or Devtools console. I do successfully get logs when using the regular node
process. Any ideas what might be going on?
from iron-node.
Can you publish a reproducable code example?
from iron-node.
If you clone the Kibana repo (https://github.com/elastic/kibana) and run node ./src/cli
you'll see some log output. If you run iron-node ./src/cli
there will be no log output in the terminal or Devtools console.
Note that these logs are ultimately getting sent to process.stdout in ./src/server/logging/LogReporter.js
from iron-node.
Ty, I will check this out this weekend .
Am 12.11.2015 00:12 schrieb "Matt Bargar" [email protected]:
If you clone the Kibana repo (https://github.com/elastic/kibana) and run node
./src/cli you'll see some log output. If you run iron-node ./src/cli
there will be no log output in the terminal or Devtools console.—
Reply to this email directly or view it on GitHub
#30 (comment).
from iron-node.
Sir @BlackBarn I will not find time this we again :\ pls can u try #60 (comment). there where a lot of improvements by the creators of Electron regarding console log. Hope this will help u. You can try to upgrade electron within iron -node
from iron-node.
Hi @s-a , I tried upgrading Electron, unfortunately it didn't make a difference.
from iron-node.
@Bargs ty for the attempt. Could you please open an issue at the electron repo?
from iron-node.
Yes I'll try to get to that this weekend. Thanks!
from iron-node.
@Bargs I plan a new release this weekend. Any news about this topic?
from iron-node.
Hi @s-a. I have to admit this slipped my mind. I haven't been working with iron node much recently, if I get back into it I'll make sure to follow up.
from iron-node.
Hi! I'm having the same issue. Any updates on this? I'm happy to make an issue on the electron repo, but haven't used electron and wouldn't know how to properly describe what we think is happening.
from iron-node.
I believe you experience this issue when using console output log streams. I never used this. But it seems you have reproducable code there?
from iron-node.
Yeah, when using streams process.stdout like this:
process.stdout.write("doesn't work")
console.log('works')
from iron-node.
Ok. Could you plz send an issue to the creator s of electron?
from iron-node.
Per electron/electron#3979 (comment) to get output in the console via process.stdout.write
it sounds like this ought to do it:
process.stdout.write = console.log.bind(console);
Can you confirm?
from iron-node.
@willhoag thanks for clarify! Yes it sounds very reasonable. You can test if this works when you put this code into your startup script. I will implement the code into iron-node core if this works for you. I would test it but realy never used process.stdout.write
.
from iron-node.
just tested this with kibana by @Bargs 👍
Will publish this pice of code with the next release. Ty @willhoag
from iron-node.
Please use https://github.com/s-a/iron-node/releases/tag/v2.1.4 for further testings.
from iron-node.
Confirming that the update produces output using process.stdout.write in the console. Thx!
from iron-node.
Related Issues (20)
- fails to stop on `debugger;` command HOT 4
- A dynamic link library (DLL) initialization routine failed (bcrypt) HOT 2
- iron-node not working with angular2-seed (typescript, gulp) HOT 1
- iron-node > 2.2.15 makes unicorns cry => doesn't work on OSX HOT 4
- Application takes 100% CPU and is unresponsive HOT 4
- Problem with using node-sass on Ubuntu 16.04 HOT 1
- command + w closes iron-node even when iron-node is behind another window HOT 1
- How to pass command to nodejs? HOT 1
- All good things come to an end.. HOT 4
- Publish a new version HOT 2
- new installation requieres install -g and still can't start HOT 7
- Run this in the web browser HOT 1
- No such module: atom_renderer_v8_util HOT 7
- Electron failed to install correctly, please delete node_modules/electron and try installing again HOT 5
- [feature request] Debugging without writing debugger HOT 4
- Electron Helper crashes when refreshing while devtools is paused HOT 4
- contextify.node was compiled against a different Node.js version using NODE_MODULE_VERSION 48 HOT 1
- Error: Cannot find module, despite NODE_PATH being set
- Usage with babel-node HOT 1
- Child Processes don't show in the logs or in the source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iron-node.