Expose log level
@@ -110,6 +110,12 @@ class BaseSpecification(object):
def run_type(self):
return self.settings.run_type if self.settings else RunTypes.KUBERNETES
+ @cached_property
+ def log_level(self):
+ if self.settings and self.settings.logging:
+ return self.settings.logging.level
+ return 'INFO'
+
@cached_property
def is_local(self):
return self.run_type == RunTypes.LOCAL
