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:

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.

Using logback-beagle