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



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

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

.log=(log) ⇒ Object



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

def self.log=(log) @log = log end

Instance Method Details

#logObject



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

def log = Logging.log