<commit_before>
ExSyslogger
======

[![Build Status](https://travis-ci.org/slashmili/ex_syslogger.svg?branch=master)](https://travis-ci.org/slashmili/ex_syslogger)
[![Hex.pm](https://img.shields.io/hexpm/v/ex_syslogger.svg)](https://hex.pm/packages/ex_syslogger)
[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](https://hexdocs.pm/ex_syslogger/)
[![Hex.pm](https://img.shields.io/hexpm/dt/ex_syslogger.svg)](https://hex.pm/packages/ex_syslogger)
[![Deps Status](https://beta.hexfaktor.org/badge/all/github/slashmili/ex_syslogger.svg)](https://beta.hexfaktor.org/github/slashmili/ex_syslogger)
[![Hex.pm](https://img.shields.io/hexpm/l/ex_syslogger.svg)]()

ExSyslogger is custom backend for `Elixir Logger` that logs to syslog by wrapping [erlang-syslog](https://github.com/Vagabond/erlang-syslog/).

This project is a fork of [exsyslog](https://github.com/22cans/exsyslog).

## Requirements
* Elixir ~> 1.3

## Features
* Logs to syslog
* Allows adding multiple backends with different configurations (e.g. each backend logs to a different facility with different log level)
* Custom log formatter
* Built-in JSON formatter(`poison` dependency is set to optional and you should explicitly add it to your dependency list)

## Installation

Add `:ex_syslogger` as a dependency in your `mix.exs` file

### Elixir 1.5 and above

```elixir
defp deps do
  [
    {:ex_syslogger, github: "slashmili/ex_syslogger", tag: "1.4.0"}
  ]
end
```

### Elixir  ~> 1.4

```elixir
defp deps do
  [
    {:ex_syslogger, "~> 1.3"}
  ]
end
```

Add `:ex_syslogger` to your list of `included_applications`:

```elixir<commit_msg>Use package in hex as dependency<commit_after>
ExSyslogger
======

[![Build Status](https://travis-ci.org/slashmili/ex_syslogger.svg?branch=master)](https://travis-ci.org/slashmili/ex_syslogger)
[![Hex.pm](https://img.shields.io/hexpm/v/ex_syslogger.svg)](https://hex.pm/packages/ex_syslogger)
[![Docs](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](https://hexdocs.pm/ex_syslogger/)
[![Hex.pm](https://img.shields.io/hexpm/dt/ex_syslogger.svg)](https://hex.pm/packages/ex_syslogger)
[![Deps Status](https://beta.hexfaktor.org/badge/all/github/slashmili/ex_syslogger.svg)](https://beta.hexfaktor.org/github/slashmili/ex_syslogger)
[![Hex.pm](https://img.shields.io/hexpm/l/ex_syslogger.svg)]()

ExSyslogger is custom backend for `Elixir Logger` that logs to syslog by wrapping [erlang-syslog](https://github.com/Vagabond/erlang-syslog/).

This project is a fork of [exsyslog](https://github.com/22cans/exsyslog).

## Requirements
* Elixir ~> 1.3

## Features
* Logs to syslog
* Allows adding multiple backends with different configurations (e.g. each backend logs to a different facility with different log level)
* Custom log formatter
* Built-in JSON formatter(`poison` dependency is set to optional and you should explicitly add it to your dependency list)

## Installation

Add `:ex_syslogger` as a dependency in your `mix.exs` file

### Elixir 1.5 and above

```elixir
defp deps do
  [
    {:ex_syslogger, "~> 1.4"}
  ]
end
```

### Elixir  ~> 1.4

```elixir
defp deps do
  [
    {:ex_syslogger, "~> 1.3"}
  ]
end
```

Add `:ex_syslogger` to your list of `included_applications`:

```elixir
{'fraction_non_alphanumeric': 0.16620583717357912, 'fraction_numerical': 0.007680491551459293, 'mean_word_length': 4.898550724637682, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 26, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1903290', 'n_tokens_mistral': 1250, 'n_tokens_neox': 1196, 'n_words': 239}