Giter Site home page Giter Site logo

Comments (26)

s-a avatar s-a commented on August 17, 2024

Did you checked the devtools console?

from iron-node.

krohrsb avatar krohrsb commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

Not very beautiful but I got output to terminal console

image

I have noticed some other things regarding to that as described at electron/electron#2390

from iron-node.

s-a avatar s-a commented on August 17, 2024

@BlackBarn do you see any output like on my console? Otherweise I would like to change the issue title.

from iron-node.

s-a avatar s-a commented on August 17, 2024

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.

krohrsb avatar krohrsb commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

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.

Bargs avatar Bargs commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

Can you publish a reproducable code example?

from iron-node.

Bargs avatar Bargs commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

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.

Bargs avatar Bargs commented on August 17, 2024

Hi @s-a , I tried upgrading Electron, unfortunately it didn't make a difference.

from iron-node.

s-a avatar s-a commented on August 17, 2024

@Bargs ty for the attempt. Could you please open an issue at the electron repo?

from iron-node.

Bargs avatar Bargs commented on August 17, 2024

Yes I'll try to get to that this weekend. Thanks!

from iron-node.

s-a avatar s-a commented on August 17, 2024

@Bargs I plan a new release this weekend. Any news about this topic?

from iron-node.

Bargs avatar Bargs commented on August 17, 2024

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.

willhoag avatar willhoag commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

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.

willhoag avatar willhoag commented on August 17, 2024

Yeah, when using streams process.stdout like this:

process.stdout.write("doesn't work")
console.log('works')

from iron-node.

s-a avatar s-a commented on August 17, 2024

Ok. Could you plz send an issue to the creator s of electron?

from iron-node.

willhoag avatar willhoag commented on August 17, 2024

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.

s-a avatar s-a commented on August 17, 2024

@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.

s-a avatar s-a commented on August 17, 2024

image
just tested this with kibana by @Bargs 👍

Will publish this pice of code with the next release. Ty @willhoag

from iron-node.

s-a avatar s-a commented on August 17, 2024

Please use https://github.com/s-a/iron-node/releases/tag/v2.1.4 for further testings.

from iron-node.

willhoag avatar willhoag commented on August 17, 2024

Confirming that the update produces output using process.stdout.write in the console. Thx!

from iron-node.

Related Issues (20)

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.