Module: Tracing::DefaultPath

Included in:
FileAppender, FileAppender, FileTarget, FileTarget
Defined in:
lib/appenders/file_appender.rb

Instance Method Summary collapse

Instance Method Details

#default_pathObject



3
4
5
6
7
8
9
# File 'lib/appenders/file_appender.rb', line 3

def default_path
  return if !@default_path
  if !File.exists?(@default_path)
    FileUtils.mkdir_p @default_path
  end
  @default_path
end

#default_path=(path) ⇒ Object



11
12
13
# File 'lib/appenders/file_appender.rb', line 11

def default_path=(path)
  @default_path = path
end