Package (0.130.8-alpha)

Stay organized with collections Save and categorize content based on your preferences.



This class is used only to provide batch settings configuration in logback.xml since cannot be used as is with logback configuration described in All data members below are simply copy of class, so it could be used with logback.xml.


Logback appender for Google Cloud Logging.

Appender configuration in logback.xml:

    <appender name="CLOUD" class="">
         <!-- Optional: filter logs at and above this level -->
         <filter class="ch.qos.logback.classic.filter.ThresholdFilter">

         <!-- Optional: defaults to "java.log" -->

         <!-- Optional: defaults to "ERROR" -->

         <!-- Optional: defaults to ASYNC -->

         <!-- Optional: defaults to true -->

         <!-- Optional: defaults to false -->

         <!-- Optional: auto detects on App Engine Flex, Standard, GCE and GKE, defaults to "global". See supported resource types -->

         <!-- Optional: defaults to the default credentials of the environment -->

         <!-- Optional: defaults to the project id obtained during authentication process. Project id is also used to construct resource name of the log entries -->

         <!-- Optional: add custom labels to log entries using LoggingEnhancer classes -->

         <!-- Optional: specifies if a batch's valid entries should be written even if some other entry failed due to an error. Defaults to true -->

         <!-- Optional: In the asynchronous mode the call(s) to Logging API takes place asynchronously and few calls to write()
         method may be batched together to compose a single call to Logging API. In order to control the batching settings,
         the logbackBatchingSettings section can be used as shown below.
         See BatchingSettings
         for more info regarding parameters shown below -->


Adds support for grouping logs by incoming http request



An enhancer for ILoggingEvent log entries. Used to add custom labels to the LogEntry.Builder.