GithubHelp home page GithubHelp logo

Comments (7)

darkfrog26 avatar darkfrog26 commented on June 16, 2024 1

Good deal. I'll try to get a new release out ASAP.

from scribe.

darkfrog26 avatar darkfrog26 commented on June 16, 2024

I wouldn't mind extracting the functionality to a more general-purpose method. Can you shed some light on your use-case to make sure it fits your needs? Why not just call SystemOutputLogger.write(...) from your code?

from scribe.

eikek avatar eikek commented on June 16, 2024

Calling SystemOutputLogger.write(…) would be just fine! Not sure if I missed something. I think it currently chooses either stderr or stdout based on the log level.

  val stream = if (record.level <= Level.Info) {
    Logger.system.out
  } else {
    Logger.system.err
  }

I would like to always log to stdout (or stderr), including levels higher than Info. i don't know how to control this from outside.

from scribe.

darkfrog26 avatar darkfrog26 commented on June 16, 2024

@eikek, can you take a look at the commit I just pushed and verify that solves your problem appropriately?

from scribe.

eikek avatar eikek commented on June 16, 2024

Hi @darkfrog26 oh thank you very much! This works very nicely. I can then just say logger.withHandler(writer = SystemOutWriter) in my config. 👍🏼

from scribe.

darkfrog26 avatar darkfrog26 commented on June 16, 2024

@eikek, 3.8.0 is now released with these changes

from scribe.

eikek avatar eikek commented on June 16, 2024

Thank you very much!

from scribe.

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.