Skip to content

Commit

Permalink
Merge pull request #56 from ojan/master
Browse files Browse the repository at this point in the history
log length option
  • Loading branch information
tersmitten authored Aug 14, 2017
2 parents cdef9c5 + e70e673 commit 66bc50f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Set up (the latest version of) [HAProxy](http://www.haproxy.org/) in Ubuntu syst
* `haproxy_global_log.{n}.level`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`)
* `haproxy_global_log.{n}.minlevel`: [optional]: Can be specified to filter outgoing messages (e.g. `notice`)
* `haproxy_global_log.{n}.format`: [optional]: Specifies the log format string to use for traffic logs (e.g. `%{+Q}o\ %t\ %s\ %{-Q}r`)
* `haproxy_global_log.{n}.length`: [optional]: Can be specified to adjust message length in log (e.g. `2048`)
* `haproxy_global_chroot`: [optional]: Changes current directory to `<jail dir>` and performs a `chroot()` there before dropping privileges
* `haproxy_global_stats`: [default: See `defaults/main.yml`]: Stats declarations
* `haproxy_global_stats.sockets`: [default: `[{listen: /run/haproxy/admin.sock }}"}]`]: Sockets declarations
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/haproxy/global.cfg.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if haproxy_global_log != false %}
{% for log in haproxy_global_log %}
log {{ log.address }} {{ log.facility }}{% if log.level is defined %} {{log.level }}{% endif %}{% if log.minlevel is defined %} {{ log.minlevel }}{% endif %}
log {{ log.address }}{% if log.length is defined %} len {{log.length }}{% endif %} {{ log.facility }}{% if log.level is defined %} {{log.level }}{% endif %}{% if log.minlevel is defined %} {{ log.minlevel }}{% endif %}

{% if log.format is defined %}
log-format {{ log.format }}
Expand Down

0 comments on commit 66bc50f

Please sign in to comment.