An advanced feature of SmartInspect is the ability to configure the logging behavior of a monitored application at runtime by using a configuration file. A SmartInspect configuration file specifies if logging is enabled, the active and default log level, the application name and the logging destinations.
; Set the connections string and enable logging connections = file(filename="c:\log.sil") enabled = true ; Set the properties which affect the log level level = verbose defaultlevel = message ; And finally set the application name appname = client
Loading such a configuration file at runtime is done by adding only a single line of code to your application:
To assist in creating configuration files, SmartInspect comes with a tool called SmartInspect Configuration Builder. This tool enables you to build configuration files simply by selecting the desired options and specifying the logging destinations.
The Process Flow toolbox displays all processes and threads of your log, their corresponding hostnames, start times and durations. With a press of a button you can create a new view for each entity and inspect the log entries independently from the rest of your log. This makes SmartInspect the ideal choice for debugging multi-threaded and distributed applications.
Often it is useful to automatically create filtered views for each new thread, process or session of the current log. This can be done by defining AutoView rules or by using the built-in rules. An example: If you define a thread AutoView rule, the Console automatically creates a new filtered view when a log entry of a new thread arrives at the Console.
The Watches Graph toolbox can track numeric watches and displays them in a convenient time graph. It is especially useful for tracking and visualizing application resources like databases connections, file handles or the amount of allocated objects.
With the help of the Watches Graph it is possible to detect temporary peaks, to find resource leaks and to monitor the general resource behavior of your application.
Thank you for taking the time to learn more about SmartInspect. To try the described benefits and integrate SmartInspect logging into your projects, try SmartInspect for free by downloading the trial.