Class: FlashFormatter

Inherits:
Log4r::Formatter
  • Object
show all
Defined in:
bin/rpipe

Overview

Formatter for Logging

Instance Method Summary collapse

Instance Method Details

#format(logevent) ⇒ Object

Easy-to-read formatting



139
140
141
142
143
144
145
146
147
# File 'bin/rpipe', line 139

def format(logevent)
  buff = "\n"
	buff << "+" * 120 + "\n"
	buff << sprintf("\t%s\n", logevent.data)
	buff << sprintf("\t%s\n", Time.now)
	buff << "+" * 120 + "\n"
	buff << "\n"
	return buff
end