test.rb in logdna-1.0.5 vs test.rb in logdna-1.0.6
- old
+ new
@@ -1,13 +1,18 @@
require 'require_all'
require_all 'lib'
-options = {hostname: "yo", app: "globo-portal", env: "staging"}
+options = {hostname: "yondfsoikplghjniodhnfvreulwignfewfnrleuwinf"}
-logger1 = Logdna::Ruby.new('deb5d62d893e82d6b03f3d4c20b96e15', options)
+logger1 = Logdna::Ruby.new('Your ingestion key', options)
+
+logger1.level = Logger::TRACE
+logger1.log('is this trace')
+
+=begin
logger1.level = Logger::WARN
logger1.log('This should be warn')
logger1.trace('This should be trace')
logger1.log('Again warn level')
@@ -17,11 +22,18 @@
logger1.log('DEBUG log1')
logger1.app = 'NEW APP NAME'
logger1.env = 'Staging'
logger1.level = 'INFO'
-logger1.log('are changes all updated')
+
+
+logger1.level = 'INFO'
+logger1.level == Logger::INFO
+
+
+logger1.log('are changes all updated')
+=end
sleep 3