All Projects → gnieh → logback-journal

gnieh / logback-journal

Licence: Apache-2.0 license
systemd journal appender for Logback

Programming Languages

java
68154 projects - #9 most used programming language
scala
5932 projects

Projects that are alternatives of or similar to logback-journal

kernel-syslog
📝 Kernel module that can be used as a replacement for syslog, logger or logwrapper
Stars: ✭ 37 (+48%)
Mutual labels:  journal, systemd
Fluent Plugin Systemd
This is a fluentd input plugin. It reads logs from the systemd journal.
Stars: ✭ 124 (+396%)
Mutual labels:  journal, systemd
sysdweb
Control systemd services through Web or REST API
Stars: ✭ 65 (+160%)
Mutual labels:  journal, systemd
dotfiles
🏡 Personal dotfiles configuration
Stars: ✭ 73 (+192%)
Mutual labels:  systemd
lunatask
All-in-one encrypted to-do list, notebook, habit and mood tracker, pomodoro timer, and journaling app
Stars: ✭ 35 (+40%)
Mutual labels:  journal
service-systemd
Setup a node.js app as systemd service.
Stars: ✭ 35 (+40%)
Mutual labels:  systemd
fuck systemd
A library to bring the joys of non-systemd users to systemd users
Stars: ✭ 19 (-24%)
Mutual labels:  systemd
MO-Problem-Journal
A journal of theorems, lemmas and problems for Mathematical Olympiads.
Stars: ✭ 45 (+80%)
Mutual labels:  journal
reactivejournal
ReactiveJournal a journalling facility for Reactive Streams. Intended for testing, remote connections and effective handling of back pressure
Stars: ✭ 27 (+8%)
Mutual labels:  journal
wimpy.deploy
Ansible role to automate immutable infrastructure scheduling one docker container on one EC2 instance
Stars: ✭ 21 (-16%)
Mutual labels:  systemd
logunit
A Java library for unit-testing logging.
Stars: ✭ 40 (+60%)
Mutual labels:  logback
erlang-systemd
systemd utilities for Erlang applications
Stars: ✭ 140 (+460%)
Mutual labels:  systemd
sysz
An fzf terminal UI for systemctl
Stars: ✭ 1,258 (+4932%)
Mutual labels:  systemd
logback-s3-rolling-policy
Logback RollingPolicy to store logs in S3
Stars: ✭ 26 (+4%)
Mutual labels:  logback
write
📝 A stream-of-consciousness writing app. Built with React.
Stars: ✭ 57 (+128%)
Mutual labels:  journal
MyJournal.Notebook
My Journal Add-In for Microsoft OneNote
Stars: ✭ 41 (+64%)
Mutual labels:  journal
markdown.today
Store your journal as an encrypted markdown file on Dropbox and edit/view it from any browser
Stars: ✭ 61 (+144%)
Mutual labels:  journal
node-systemd-journald
Native bindings to journald
Stars: ✭ 26 (+4%)
Mutual labels:  systemd
pdiary
A simple terminal diary journal application written in Python with encryption support.
Stars: ✭ 24 (-4%)
Mutual labels:  journal
go-systemd-time
📅 Go implementation of systemd relative time adjustments
Stars: ✭ 21 (-16%)
Mutual labels:  systemd

Maven Central

logback-journal

systemd journal appender for Logback.

Installation

This appender is published in sonatype maven repository. If you are using maven, simply add the following in your pom.xml

<dependency>
  <groupId>org.gnieh</groupId>
  <artifactId>logback-journal</artifactId>
  <version>0.3.0</version>
</dependency>

if you are using sbt, add this to your build.sbt

libraryDependencies += "org.gnieh" % "logback-journal" % "0.3.0"

You also need the systemd journal library installed on your system to log to it. For newest version of systemd, journal is integrated in the systemd base library. Older version had a separate library named systemd-journal. This appender use systemd as a library by default. You can change this by using the systemd.library JVM property (e.g. -Dsystemd.library=systemd-journal)

Configuration

Basic configuration to use the systemd journal appender looks like this:

<configuration>

  <appender name="journal" class="org.gnieh.logback.SystemdJournalAppender" />

  <root level="debug">
    <appender-ref ref="journal" />
  </root>
</configuration>

The appender can be configured with the following properties

Property name Type Description Default Value
logLocation boolean Determines whether the exception locations are logged when present. This data is logged in standard systemd journal fields CODE_FILE, CODE_LINE and CODE_FUNC. true
logSourceLocation boolean Determines whether the source locations are logged when present. Note that there is a performance overhead when switched on. This data is logged in standard systemd journal fields CODE_FILE, CODE_LINE and CODE_FUNC. false
logException boolean Determines whether the exception name and messages are logged. This data is logged in the user fields EXN_NAME and EXN_MESSAGE. true
logStackTrace boolean Determines whether the exception stack trace is logged. This data is logged in the user field EXN_STACKTRACE. false
logThreadName boolean Determines whether the thread name is logged. This data is logged in the user field THREAD_NAME. true
logLoggerName boolean Determines whether the logger name is logged. This data is logged in the user field LOGGER_NAME. false
logMdc boolean Determines whether the MDC content is logged. Each key/value pair is logged as user field with the mdcKeyPrefix prefix. false
mdcKeyPrefix String Determines how MDC keys should be prefixed when logMdc is set to true. Note that keys need to match the regex pattern [A-Z0-9_]+ and are normalized otherwise. ""
syslogIdentifier String Overrides the syslog identifier string. This data is logged in the user field SYSLOG_IDENTIFIER. The process name (i.e. "java")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].