Make Your Logs Work for You

The days of logging in to servers and manually viewing log files are over. SolarWinds® Papertrail™ aggregates logs from applications, devices, and platforms to a central location.

View Technology Info

FEATURED TECHNOLOGY

Troubleshoot Fast and Enjoy It

SolarWinds® Papertrail™ provides cloud-based log management that seamlessly aggregates logs from applications, servers, network devices, services, platforms, and much more.

View Capabilities Info

FEATURED CAPABILITIES

Aggregate and Search Any Log

SolarWinds® Papertrail™ provides lightning-fast search, live tail, flexible system groups, team-wide access, and integration with popular communications platforms like PagerDuty and Slack to help you quickly track down customer problems, debug app requests, or troubleshoot slow database queries.

View Languages Info

FEATURED LANGUAGES

TBD - APM Integration Title

TBD - APM Integration Description

TBD Link

APM Integration Feature List

TBD - Built for Collaboration Title

TBD - Built for Collaboration Description

TBD Link

Built for Collaboration Feature List

Blog > More colorful logging with ANSI color codes

More colorful logging with ANSI color codes

Posted by By telliott on May 1, 2013

Papertrail’s event viewer now honors ANSI color codes in log messages. Here’s an example:

image

The light blue and purple colors were chosen by the application which generated these logs (Ruby on Rails) and are embedded in the log messages. The messages contain ANSI color codes. These escape characters can set the foreground color, background color, and treatment (such as bold) for sections of the message.

This is live now. To use it, simply change your framework or app’s the logging configuration in your Web framework or custom app logs to generate colorized logs. Colors will be shown in Papertrail automatically.

Papertrail already automatically colorizes the orange sender name and blue program name, since they are links to show related context (see Event Viewer Intro).

Finally, a word of caution: it’s easy to go overboard here. A tiny, tiny bit of color goes a long way.

Please send any comments (or screenshots!) and enjoy.