Integrating and using the logging library

Adding SmartInspect logging to your application takes just a few lines of code. Get rich logging data web application, service or enterprise system.

The SmartInspect libraries provide you with many different log methods to log messages, warnings, exceptions, files, images and even entire objects. All libraries share the same core set of features and contain additional functionality for the particular development environment. Their power and flexibility ensure that all your logging needs are fully met.

Specialised Viewers

The specialised Viewers help you to view and analyse your data. Besides being responsible for displaying the logged information, they provide additional functionality to copy, save and export your data. The set of available viewers ranges from simple text viewers, over an object inspector to more complex viewers like a hex and even a table viewer.

  1. The Text viewer displays your log entry titles and any attached texts. It displays the line count, supports word wrapping and can save the logged information to a file.

  2. Entire objects can be analysed with the Inspector viewer. Depending on the used SmartInspect library, it displays fields, properties and even events of any arbitrary object.

  3. To inspect binary data, the Binary viewer assists you with a powerful hex editor interface. This can be very useful to analyse binary files and memory dumps.

  4. The Source viewer lets you inspect any kind of source code with built-in syntax highlighting for several source code types like scripting languages, SQL code and XML.

Protocols and Options

The different protocols like the built-in file, TCP and named pipe protocols allow you to log to different destinations. You can have multiple logging connections open at the same time and log to a file and the Console simultaneously. You can customise the behavior of any protocol by specifying additional protocol options in the connections string.

Navigation in the Console

To quickly navigate through log entries, the SmartInspect Console contains many useful navigation features. You can jump to the start and end of a method, jump to log entries of a selected type and set bookmarks on important log entries. SmartInspect further contains strong search capabilities to quickly find the information you are looking for. Besides the standard search functionality, regular expressions let you specify even complex search terms easily.

  1. Simply select a log entry type and jump to all occurrences in the current view. Additional commands let you jump to the start and end of a method and explore the call stack of a log entry.

  2. Quickly jump to relevant methods with the Go to Method dialog. Just enter a few characters of the method name and select the method to jump to its position in the current log.

  3. Bookmark one or more log entries per view to quickly jump back and forth between important sections of your log.

Try SmartInspect Free

Get started in seconds and try SmartInspect free for 30 days.

Scroll to Top