Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.56 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.56 KB

Mobile Logstash Encoder

mobile-logstash-encoder Scala version support Release

Mobile wishes to capture App, Stack and Stage using the simple-configuration AWS identity detection.

This library provides an encoder extends the LogstashEncoder to set the custom fields.

Add the MobileLogstash to an appender like

   <appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">    
        <encoder class="com.gu.mobile.logback.MobileLogstash">
            <defaultAppName>[INSERT APP NAME]</defaultAppName>
        </encoder>
        <file>logs/[INSERT APP NAME].log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>logs/[INSERT APP NAME].%d{yyyy-MM-dd}.gz</fileNamePattern>
            <maxHistory>30</maxHistory>
        </rollingPolicy>
   </appender>

Releasing a new version

This repo uses gha-scala-library-release-workflow to automate publishing releases (both full & preview releases) - see Making a Release.