summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-03-22 17:13:30 +0000
committerGitHub <noreply@github.com>2018-03-22 17:13:30 +0000
commit796f0c80f962cc9d47f91bb052b0e1b4a41db6da (patch)
tree144439e94e8b277dc96726da8f5736d603743dc7
parente636ae3c638776277f7e9dd52cb2515a1695982a (diff)
parent6bf78bb5803f11ef832e8e0b15151ae9b130eeb7 (diff)
downloadmixlib-log-796f0c80f962cc9d47f91bb052b0e1b4a41db6da.tar.gz
Merge pull request #33 from chef/tm/traciness
allow logger to query trace level
-rw-r--r--lib/mixlib/log/logger.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/mixlib/log/logger.rb b/lib/mixlib/log/logger.rb
index abc7bc3..e124b7f 100644
--- a/lib/mixlib/log/logger.rb
+++ b/lib/mixlib/log/logger.rb
@@ -8,6 +8,9 @@ module Mixlib
class Logger < ::Logger
include Logging
+
+ def trace?; @level <= TRACE; end
+
#
# === Synopsis
#