simple_structured_logger 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 824ec497606b6c639fdc7209c9854243512457bb7b97bc3ae3b6300354f85916
4
- data.tar.gz: 56bdbf5858c33164a08ec88ee96cb0842c8f11a2caeef1123af14f3a2b0a73f7
3
+ metadata.gz: 959e1a8479e4536b7c1a97cca00e409b4d979e611a5da6a214311cb33a877070
4
+ data.tar.gz: 555fd1aa0f22f2470b65e724bdaf861d1f28ece8fd5d9decf8579bd7bcd4d7b1
5
5
  SHA512:
6
- metadata.gz: 8296498d2355f715ccc7a8b089f3129ed39688ebb8503e940f1b729d18d754142878524c48f3ab9cc8221910be0ea6200259ad9c1b1d4fa994f8e2dcab363ad2
7
- data.tar.gz: 384a55748e300dcc7903be2609094af12fd88a4e2d3c58abf5646fb819314e9cb68b034c25890c2562355fe26babcd89fc422d617fd3373dff255ff0dc6b9ab9
6
+ metadata.gz: 87bc3367c2993374dbb3c2220a6d9378cfecaf0480901e26f305850b75c7584ea7a90cbe8c1c9bc831802e07456bf50a250a03a0cb2634faa926e6f9523e770f
7
+ data.tar.gz: '0489971ce5a5d82e1a9b3327510a322796ba4b02014300f286502df17923bfe35de572d272119647a32edcd97798409ef68be0ea8fe62d1e93c033758a0633f5'
@@ -58,11 +58,15 @@ module SimpleStructuredLogger
58
58
  set_log_level_from_environment
59
59
  end
60
60
 
61
+ # returns true if log level is set from env
61
62
  def set_log_level_from_environment
62
63
  env_log_level = ENV['LOG_LEVEL']
63
64
 
64
65
  if !env_log_level.nil? && Logger::Severity.const_defined?(env_log_level.upcase)
65
66
  @logger.level = Logger::Severity.const_get(env_log_level.upcase)
67
+ true
68
+ else
69
+ false
66
70
  end
67
71
  end
68
72
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "simple_structured_logger"
7
- spec.version = '1.0.0'
7
+ spec.version = '1.0.1'
8
8
  spec.authors = ["Michael Bianco"]
9
9
  spec.email = ["mike@mikebian.co"]
10
10
  spec.licenses = ['MIT']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_structured_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bianco