forked from ungleich-public/cdist
__cdist_log_level=<log level int value>; __cdist_log_level_name=<log level name> (#574)
This commit is contained in:
parent
1ae5b1732e
commit
f0dc21ec0c
20 changed files with 192 additions and 40 deletions
|
|
@ -10,12 +10,13 @@ next:
|
|||
* Type __daemontools: Improve it on FreeBSD (Kamila Součková)
|
||||
* Type __package_pkg_openbsd: Fix use of --name (Philippe Gregoire)
|
||||
* Type __package_pkg_openbsd: Fix pkg_version explorer (Philippe Gregoire)
|
||||
* Documentation: Document __cdist_loglevel type variable (Darko Poljak)
|
||||
* Type __install_stage: Fix __debug -> __cdist_loglevel (Darko Poljak)
|
||||
* Core, types: Make __cdist_loglevel value more expressive (Darko Poljak)
|
||||
* Core: Add -l/--log-level option (Darko Poljak)
|
||||
* Core: __cdist_loglevel -> __cdist_log_level and make cdist honor __cdist_log_level env var (Darko Poljak)
|
||||
* Type __prometheus_exporter: Fixes + go version bump (Kamila Součková)
|
||||
* Core, types: __cdist_loglevel -> __cdist_log_level (Darko Poljak)
|
||||
* Core, types: Add __cdist_log_level_name env var with vlaue of log level name (Darko Poljak)
|
||||
* Core: Make cdist honor __cdist_log_level env var (Darko Poljak)
|
||||
* Core: Add -l/--log-level option (Darko Poljak)
|
||||
* Type __install_stage: Fix __debug -> __cdist_log_level (Darko Poljak)
|
||||
* Documentation: Document __cdist_log_level (Darko Poljak)
|
||||
|
||||
4.6.1: 2017-08-30
|
||||
* Type __user: Explore with /etc files (passwd, group, shadow) (Philippe Gregoire)
|
||||
|
|
|
|||
|
|
@ -198,9 +198,27 @@ Environment variables (for reading)
|
|||
-----------------------------------
|
||||
The following environment variables are exported by cdist:
|
||||
|
||||
__cdist_log_level
|
||||
String value of cdist log level. One of OFF, ERROR, WARNING, INFO,
|
||||
VERBOSE, DEBUG and TRACE.
|
||||
__cdist_log_level, __cdist_log_level_name
|
||||
cdist log level value and cdist log level name. One of:
|
||||
|
||||
+----------------+-----------------+
|
||||
| Log level name | Log level value |
|
||||
+================+=================+
|
||||
| OFF | 60 |
|
||||
+----------------+-----------------+
|
||||
| ERROR | 40 |
|
||||
+----------------+-----------------+
|
||||
| WARNING | 30 |
|
||||
+----------------+-----------------+
|
||||
| INFO | 20 |
|
||||
+----------------+-----------------+
|
||||
| VERBOSE | 15 |
|
||||
+----------------+-----------------+
|
||||
| DEBUG | 10 |
|
||||
+----------------+-----------------+
|
||||
| TRACE | 5 |
|
||||
+----------------+-----------------+
|
||||
|
||||
Available for: initial manifest, explorer, type manifest, type explorer,
|
||||
type gencode.
|
||||
__explorer
|
||||
|
|
@ -266,8 +284,27 @@ require
|
|||
Setup dependencies between objects (see \`cdist manifest <cdist-manifest.html>\`_).
|
||||
|
||||
__cdist_log_level
|
||||
String value of cdist log level. One of OFF, ERROR, WARNING, INFO,
|
||||
VERBOSE, DEBUG and TRACE. If set cdist will set this log level in
|
||||
cdist log level value. One of:
|
||||
|
||||
+----------------+-----------------+
|
||||
| Log level | Log level value |
|
||||
+================+=================+
|
||||
| OFF | 60 |
|
||||
+----------------+-----------------+
|
||||
| ERROR | 40 |
|
||||
+----------------+-----------------+
|
||||
| WARNING | 30 |
|
||||
+----------------+-----------------+
|
||||
| INFO | 20 |
|
||||
+----------------+-----------------+
|
||||
| VERBOSE | 15 |
|
||||
+----------------+-----------------+
|
||||
| DEBUG | 10 |
|
||||
+----------------+-----------------+
|
||||
| TRACE | 5 |
|
||||
+----------------+-----------------+
|
||||
|
||||
If set cdist will set this log level in
|
||||
accordance with configuration rules. If cdist invokation is used
|
||||
in types then nested cdist will honor this specified log level if
|
||||
not specified otherwise while invoking it.
|
||||
|
|
|
|||
|
|
@ -333,9 +333,28 @@ So when you generate a script with the following content, it will work:
|
|||
|
||||
Log level in types
|
||||
------------------
|
||||
cdist log level can be accessed from __cdist_log_level variable.
|
||||
Value is a string, one of OFF, ERROR, WARNING, INFO, VERBOSE, DEBUG and
|
||||
TRACE. It is available for initial manifest, explorer, type manifest,
|
||||
cdist log level can be accessed from __cdist_log_level variable.One of:
|
||||
|
||||
+----------------+-----------------+
|
||||
| Log level | Log level value |
|
||||
+================+=================+
|
||||
| OFF | 60 |
|
||||
+----------------+-----------------+
|
||||
| ERROR | 40 |
|
||||
+----------------+-----------------+
|
||||
| WARNING | 30 |
|
||||
+----------------+-----------------+
|
||||
| INFO | 20 |
|
||||
+----------------+-----------------+
|
||||
| VERBOSE | 15 |
|
||||
+----------------+-----------------+
|
||||
| DEBUG | 10 |
|
||||
+----------------+-----------------+
|
||||
| TRACE | 5 |
|
||||
+----------------+-----------------+
|
||||
|
||||
|
||||
It is available for initial manifest, explorer, type manifest,
|
||||
type explorer, type gencode.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue