Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

loggly-syslog-logback

A modification of the standard Logback syslog appender that forwards events to loggly http://loggly.com

Building

Building requires a recent version of maven. http://maven.apache.org

mvn clean install

To build a jar that contains all the required dependencies in one jar use the with-dependencies profile.

mvn clean install -Pwith-dependencies

Configuring

The following xml snippet will configure the appender, just add it to your logback.xml. You will need to add your loggly api key. You can provide arbitrary tags here that will be added to each event and aid filtering in the loggly ui. The port and syslog host should be good as provided

<appender name="LOGGLY" class="com.github.sgargan.logging.LogglySyslogAppender">
    <syslogHost>logs-01.loggly.com</syslogHost>
    <tags>appId,dev</tags>
    <apiToken>your-loggly-api-key</apiToken>
    <appName>appId</appName>
    <port>514</port>
    <facility>LOCAL6</facility>
</appender>

Licence

Uses the same dual licencing as Logback. See LICENCE.txt

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages