<commit_before>logback-journal
===============

[systemd](http://freedesktop.org/wiki/Software/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`
```xml
<dependency>
  <groupId>org.gnieh</groupId>
  <artifactId>logback-journal</artifactId>
  <version>0.1.0-SNAPSHOT</version>
</dependency>
```

if you are using sbt, add this to your `build.sbt`
```scala
libraryDependencies += "org.gnieh" % "logback-journal" % "0.1.0-SNAPSHOT"
```

Configuration
-------------

Basic configuration to use the systemd journal appender looks like this:
```xml
<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
--------------- | ------- | -----------
`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`.
`logException`  | boolean | Determines whether the exception name and messages are logged. This data is logged in the user fields `EXN_NAME` and `EXN_MESSAGE`.
`logThreadName` | boolean | Determines whether the thread name is logged. This data is logged in the user field `THREAD_NAME`.
<commit_msg>[fix #3] Add default configuration values<commit_after>logback-journal
===============

[systemd](http://freedesktop.org/wiki/Software/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`
```xml
<dependency>
  <groupId>org.gnieh</groupId>
  <artifactId>logback-journal</artifactId>
  <version>0.1.0-SNAPSHOT</version>
</dependency>
```

if you are using sbt, add this to your `build.sbt`
```scala
libraryDependencies += "org.gnieh" % "logback-journal" % "0.1.0-SNAPSHOT"
```

Configuration
-------------

Basic configuration to use the systemd journal appender looks like this:
```xml
<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`
`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`
`logThreadName` | boolean | Determines whether the thread name is logged. This data is logged in the user field `THREAD_NAME`. | `true`

{'fraction_non_alphanumeric': 0.15402001937358734, 'fraction_numerical': 0.004197610590894414, 'mean_word_length': 3.8557993730407523, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806488', 'n_tokens_mistral': 926, 'n_tokens_neox': 878, 'n_words': 306}