Skip to content

Commit

Permalink
add log function with tags for better logg filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
benprew committed Jun 4, 2024
1 parent 784294d commit 9c74ad4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/reckon/logger.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module Reckon
LOGGER = Logger.new(STDERR)
LOGGER.level = Logger::WARN

def log(tag, msg)
LOGGER.warn(tag, msg)
end
end

0 comments on commit 9c74ad4

Please sign in to comment.