Coder Social home page Coder Social logo

Comments (7)

simonz130 avatar simonz130 commented on June 26, 2024

Yes, possibly some messages are lost. Where do you run your code?

Also, regardless, wanted to mention that we'll be upgrading the batching logic in Q3. it's going to be part of the java-logging library instead of the com.google.api.gax library. That should make this issue disappear but I would still like to know where you run your code.

from java-logging-logback.

vojkny avatar vojkny commented on June 26, 2024

I solved this using "sync" settings instead of default "async". This happens in Google Cloud Functions.

from java-logging-logback.

minherz avatar minherz commented on June 26, 2024

@knyttl i am closing the issue. feel free to reopen if you feel the question wasn't addressed.

from java-logging-logback.

lijufeng2016 avatar lijufeng2016 commented on June 26, 2024

I solved this using "sync" settings instead of default "async". This happens in Google Cloud Functions.

could you tell me the config key?I am facing this problem

from java-logging-logback.

vojkny avatar vojkny commented on June 26, 2024
private val logging = LoggingOptions
        .getDefaultInstance()
        .getService()

    // this must be set to true for Cloud Functions
    override var synchronicity: Synchronicity
        get() = logging.writeSynchronicity
        set(value) {
            logging.writeSynchronicity = value
        }

from java-logging-logback.

minherz avatar minherz commented on June 26, 2024

@lijufeng2016 It is possible to configure the Synchronization flag in the logback configuration. To make writing synchronous, use:

<writeSynchronicity>SYNC</writeSynchronicity>

from java-logging-logback.

vojkny avatar vojkny commented on June 26, 2024

I don't use logback, I log directly via the logging api.

from java-logging-logback.

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.