Class: StraightServer::Logger

Inherits:
Logmaster
  • Object
show all
Defined in:
lib/straight-server/logger.rb

Instance Method Summary collapse

Instance Method Details

#blank_lines(n = 1) ⇒ Object

inserts a number of blank lines



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/straight-server/logger.rb', line 5

def blank_lines(n=1)

  n.times { puts "\n" }

  File.open(StraightServer::Initializer::ConfigDir.path + '/' + Config.logmaster['file'], 'a') do |f|
    n.times do
      f.puts "\n"
    end
  end if Config.logmaster['file']

end