Logback-beagle
Logback-beagle: an Eclipse plug-in for viewing logs
During the development process, it is common for developers to
print log output on the console. Typically, the developer will
also customize the format of the log output by setting properties
of a PatternLayout
instance. Logback-beagle is
intended as a replacement for the console for viewing logs. It
offers several advantages:
- Events of level WARN and ERROR are marked by an orange flag and respectively a red flag.
- You can jump to the class and line where a given logging request originated with a simple click on a menu item
- Change the output format dynamically whenever you chose to do so.
- Easy configuration (only one line in your logback.xml file).
Plug-in Installation
![]() |
The logback-beagle plug-in can be installed in Eclipse by adding the URL http://logback.qos.ch/p2/ as a new Eclipse software site under the "Intall New Software" page. |
Restarting Eclipse should load the plugin. To access the Beagle View, either type A"lt-Shift-Q, Q" or select: Window > Show view > Other... . You should see the Beagle view nested in the Logback category. Selecting this view will add it to your workspace. It shouls looks as follows:
Configring the client (logback.xml)
In order to send log events from your application to logback-beagle plugi-on requires the additionof a single line in your application's logback.xml configuration file.
<configuration debug="true"> <!-- this is all it takes to send events to logback-beagle --> <consolePlugin /> </configuration>
Under the hood, adding <consolePlugin>
element
create a SocketAppender
which will send events to
localhost
, on port 4321.