feat(log): Logging provides the logging configuration.

This commit is contained in:
Bo-Yi Wu 2019-06-26 01:04:49 +08:00
parent 8a5521cd0f
commit 89e6a10062
2 changed files with 28 additions and 6 deletions

View File

@ -7,7 +7,21 @@ DRONE_RPC_SECRET={{ drone_rpc_secret }}
{% if drone_runner_capacity is defined %} {% if drone_runner_capacity is defined %}
DRONE_RUNNER_CAPACITY={{ drone_runner_capacity }} DRONE_RUNNER_CAPACITY={{ drone_runner_capacity }}
{% endif %} {% endif %}
{% if drone_logs_debug is defined %}
DRONE_LOGS_DEBUG=true DRONE_LOGS_DEBUG=true
{% endif %}
{% if drone_logs_trace is defined %}
DRONE_LOGS_TRACE=true
{% endif %}
{% if drone_logs_nocolor is defined %}
DRONE_LOGS_NOCOLOR=true
{% endif %}
{% if drone_logs_pretty is defined %}
DRONE_LOGS_PRETTY=true
{% endif %}
{% if drone_logs_text is defined %}
DRONE_LOGS_TEXT=true
{% endif %}
{% if drone_runner_name is defined %} {% if drone_runner_name is defined %}
DRONE_RUNNER_NAME={{ drone_runner_name }} DRONE_RUNNER_NAME={{ drone_runner_name }}
{% endif %} {% endif %}

View File

@ -16,13 +16,21 @@ DRONE_DATABASE_SECRET={{ drone_database_secret }}
{% if drone_agents_enabled is defined %} {% if drone_agents_enabled is defined %}
DRONE_AGENTS_ENABLED=true DRONE_AGENTS_ENABLED=true
{% endif %} {% endif %}
{% if drone_logs_pretty is defined %} {% if drone_logs_debug is defined %}
DRONE_LOGS_PRETTY={{ drone_logs_pretty }}
{% endif %}
{% if drone_logs_color is defined %}
DRONE_LOGS_COLOR={{ drone_logs_color }}
{% endif %}
DRONE_LOGS_DEBUG=true DRONE_LOGS_DEBUG=true
{% endif %}
{% if drone_logs_trace is defined %}
DRONE_LOGS_TRACE=true
{% endif %}
{% if drone_logs_nocolor is defined %}
DRONE_LOGS_NOCOLOR=true
{% endif %}
{% if drone_logs_pretty is defined %}
DRONE_LOGS_PRETTY=true
{% endif %}
{% if drone_logs_text is defined %}
DRONE_LOGS_TEXT=true
{% endif %}
{% if drone_user_create is defined %} {% if drone_user_create is defined %}
DRONE_USER_CREATE={{ drone_user_create }} DRONE_USER_CREATE={{ drone_user_create }}
{% endif %} {% endif %}