Created by: telmich
@Unterstrichmoepunterstrich Not sure if I understand the request correctly - but cdist uses standard libc parsing, so it actually uses /etc/hosts by default
Created by: darko-poljak
@4nd3r beta now supports __target_host_tags env var. It contains comma separated list of target host tags. If host is not present in inventory or has no tags then this…
Created by: 4nd3r
space separated tags would be better imho. for example to loop through them using for a in $b etc.
will test new week, but now wilderness is calling. thanks!
Created by: darko-poljak
@4nd3r Since command for adding tags specifies list of tags to be comma separated list of values I exposed the same list in this env…
Created by: 4nd3r
ahaa, yes.
i'm already taking advantage of $__target_host_tags in some manifests and no issues so far.
Created by: darko-poljak
@4nd3r Great! :) Then I am closing this issue. If you (or someone else) find some issue then open new one.
Created by: darko-poljak
@asteven
I would do it in this order, to go with convention (e.g. TRACE is finer-grained than DEBUG). I also took inspiration from…
Created by: telmich
Just my 2 cent: if python already defines 5 log levels, I suggest to use them.
I don't see an advantage in creating custom levels - prove me wrong, but simplicity usually…
Created by: darko-poljak
@telmich There is no TRACE log level. I would also remove VERBOSE_INFO and add only TRACE.
Created by: darko-poljak
@asteven @telmich The following?
ERROR = 40 (cdist level -1) WARNING = 30 (cdist level 0, default - for simplicity for now WARNING and ERROR are united in lowest and…
Created by: asteven
@telmich there is nothing wrong with creating custom logging levels. What the end user cares about is INFO (the new one) and ERROR. Everything else is basically just for…
Created by: asteven
@darko-poljak Who said TRACE is finer-grained than DEBUG? There's no law that dictates what log levels are called.
I based the names and order on…
Created by: darko-poljak
@asteven As it seems most logging frameworks use TRACE < DEBUG. SLF4J, Logback, log4j, Apache Commons Logging, Log4Net, NLog, apache httpd as an application example, as…
Created by: darko-poljak
@asteven @telmich I redefined cdist logging facility. Take a look: https://github.com/ungleich/cdist/compare/master...darko-poljak:better-logging
If you have no remarks…
Created by: darko-poljak
Branch better-logging merged to master.