Giter VIP home page Giter VIP logo

Comments (8)

x-cray avatar x-cray commented on June 10, 2024

BTW, how config.LogOutput is actually used?

from go-marathon.

eicca avatar eicca commented on June 10, 2024

I assume it's not used any more. All logging is done with glog currently which is a bit inflexible.

from go-marathon.

x-cray avatar x-cray commented on June 10, 2024

Ok, I've removed its assignment from examples code in #79

from go-marathon.

gambol99 avatar gambol99 commented on June 10, 2024

@x-cray, it was left over from the previous logging code ... although this issue is supposed act as a reminder to replace that as well :-) ..

from go-marathon.

mattes avatar mattes commented on June 10, 2024

We are using a customized glog version. As soon as we include another package that imports the "original" glog version, we get a panic:

panic:
xxx.test flag redefined: log_dir

... which makes sense. Not sure how to solve this, yet.

from go-marathon.

mattes avatar mattes commented on June 10, 2024

Maybe this helps: https://github.com/golang/glog/blob/master/glog.go#L914

from go-marathon.

eicca avatar eicca commented on June 10, 2024

@mattes I think the best solution would be to not to use glog directly, rather injecting logger to the library through config.
I know that it was done in grpc-go for example: https://github.com/grpc/grpc-go/tree/master/grpclog
We can do the same, though maybe there are some better practices?

from go-marathon.

mattes avatar mattes commented on June 10, 2024

ref: #103

from go-marathon.

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.