Module: Bitferry::Logging

Included in:
Bitferry, Bitferry, Rclone, Rclone, Restic, Restic, Task, Task, Volume, Volume
Defined in:
lib/bitferry.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.logObject



19
20
21
22
23
24
25
26
# File 'lib/bitferry.rb', line 19

def self.log
  unless @log
    @log = Logger.new($stderr)
    @log.level = Logger::WARN
    @log.progname = :bitferry
  end
  @log
end

Instance Method Details

#logObject



27
# File 'lib/bitferry.rb', line 27

def log = Logging.log