%
# This constant array defines the HTML colour codes for the HTML Formatter.
# Ensure that they meet the same as the custom levels - although note the
# implicit first level of 'ALL'. These can be HTML colour code strings or
# hex colours in the form '#RRGGBB'.
HTML_FORMATTER_COLOURS = {
'All' => 'white',
'Debug' => 'lightblue',
'Info' => 'white',
'Warn' => 'orange',
'Error' => 'red',
'Fatal' => 'red'
}
# Translator events array pre-processing.
name = @log_name
events = @events
errors = []
warnings = []
debug = []
events.each do |event|
errors << event if 'Error' == event.level or 'Fatal' == event.level
warnings << event if 'Warn' == event.level
debug << event if 'Debug' == event.level
end
%>