lib/semantic_logger/appender/file.rb in semantic_logger-4.7.4 vs lib/semantic_logger/appender/file.rb in semantic_logger-4.8.0
- old
+ new
@@ -34,11 +34,11 @@
#
# # Enable trace level logging
# SemanticLogger.default_level = :info
#
# # Log to screen
- # SemanticLogger.add_appender(io: STDOUT, formatter: :color)
+ # SemanticLogger.add_appender(io: $stdout, formatter: :color)
#
# # And log to a file at the same time
# SemanticLogger.add_appender(file_name: 'application.log', formatter: :color)
#
# logger = SemanticLogger['test']
@@ -50,10 +50,10 @@
#
# # Enable trace level logging
# SemanticLogger.default_level = :trace
#
# # Log to screen but only display :info and above
- # SemanticLogger.add_appender(io: STDOUT, level: :info)
+ # SemanticLogger.add_appender(io: $stdout, level: :info)
#
# # And log to a file at the same time, including all :trace level data
# SemanticLogger.add_appender(file_name: 'application.log')
#
# logger = SemanticLogger['test']