Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

English translation #1

Merged
merged 1 commit into from Mar 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 13 additions & 16 deletions README.md
@@ -1,25 +1,24 @@
# Chokecherry

Обертка над **lager**, которая не зависимо от вида **backend** осуществляет ограничение количества выводимых сообщений.
Wrapper around **lager** logger which limits the volume of messages irrespectively of the lager's **backend**.

Вызовы **chokecherry:info**, **chokecherry:warning**, **chokecherry:error** транслируются в **lager:info**, **lager:warning**,
**lager:error** соответсвенно с соблюдением арности.
The calls **chokecherry:info**, **chokecherry:warning**, **chokecherry:error** are getting translated into the **lager:info**, **lager:warning**, **lager:error**, retaining the proper arity.

Для добавления в лог название модуля откуда произошел вызов и Pid вызывающего процесса можно использовать один из двух способов:
There are two ways to log out the original module's name and the invocation process' Pid:

* указываем опцию для компилятора непосредственно в файле, в котором используем:
* Use the compiler option right inside the file which uses the **chockecherry**:

```
-compile([{parse_transform, chokecherry_transform}]).
```

**Внимание**: данная строчка должна предшествовать
**Important**: that line should precede the

```
-compile([{parse_transform, lager_transform}]).
```

* указываем опцию для компилятора в главном rebar.config проекта:
* Use that compiler option in the global `rebar.config` for the project:

```
{erl_opts, [
Expand All @@ -30,17 +29,16 @@
}.
```

**Внимание**: *chokecherry_transform* должен предшествовать *lager_transform*.
**Important**: the *chokecherry_transform* should precede the *lager_transform*.

Конфигурация
============
## Configuration

Данное приложение можно немного подстроить под свои нужды, а именно переопределить следующие значения:
This application can be somewhat customized by redefining the following settings:

- длина очереди для **shaper**
- таймауты для **shaper** и **writer**
- the queue length for the **shaper**
- timeouts for the **shaper** and **writer**

Значения по-умолчанию следующие:
Default settings are as follows:

```
[
Expand All @@ -57,8 +55,7 @@

```

Статус сборки
=============
## Build status

[![Build Status](https://travis-ci.org/funbox/chokecherry.svg?branch=master)](https://travis-ci.org/funbox/chokecherry)