initial commit
This commit is contained in:
12
angie/snip/log.j2mod
Normal file
12
angie/snip/log.j2mod
Normal file
@@ -0,0 +1,12 @@
|
||||
{%- macro error_log(dest='error.log', level='warn') %}
|
||||
error_log {{ '/run/ngx/log'|join_prefix(dest) | ngx_esc }} {{ level | ngx_esc }};
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
{%- macro access_log(dest='access.log', format='main') %}
|
||||
access_log {{ '/run/ngx/log'|join_prefix(dest) | ngx_esc }} {{ format | ngx_esc }}
|
||||
{%- for k, v in kwargs|dictsort %}
|
||||
{{ "{}={}".format(k, v) | ngx_esc }}
|
||||
{%- endfor %}
|
||||
;
|
||||
{%- endmacro %}
|
Reference in New Issue
Block a user