lib/semantic_logger/appender/file.rb in semantic_logger-4.8.0 vs lib/semantic_logger/appender/file.rb in semantic_logger-4.8.1
- old
+ new
@@ -103,8 +103,12 @@
# Flush all pending logs to disk.
# Waits for all sent documents to be writted to disk
def flush
@log.flush if @log.respond_to?(:flush)
end
+
+ def console_output?
+ [$stderr, $stdout].include?(@log)
+ end
end
end
end