% provide :title, 'System Log Viewer' %> <% def record_class(record) if record.level_id == 2 'warning' elsif record.level_id > 2 'danger' else record.level.to_s.downcase + '-row' end.html_safe end %>
Severity | Time | App | Message |
---|---|---|---|
No Records Found | |||
<%= rec.level %> | <%= rec.time.strftime('%Y-%m-%d %H:%M:%S') %> | <%= rec.app_name %> v<%= rec.app_version %> PID:<%= rec.process_id %> | <%= h(rec.message).gsub("\n", " \n").html_safe %> |
Record<%= @log.count > (@options.max_records + 1) ? 's' : '' %> <%= (@options.max_records + 1) %> <%= @log.count > (@options.max_records + 1) ? "to #{@log.count}" : '' %> not shown. |