[logback-dev] [JIRA] Commented: (LBGENERAL-50) Swing Logger GUI (edit level and show root logger)

Laurent Bourges (JIRA) noreply-jira at qos.ch
Fri Dec 9 10:04:13 CET 2011


    [ http://jira.qos.ch/browse/LBGENERAL-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12330#action_12330 ] 

Laurent Bourges commented on LBGENERAL-50:
------------------------------------------

Are you interested by such contribution ? 
May it be integrated into logback source code / release ?

To implement such features, here is my code (LGPL 2.1 license to be compatible)
- LogbackGui.java
    This class provides two major functionnalities:
    - application log viewer
    - one simple  log GUI : Logger hierarchy browser / Level editor and displays current logs
    This class is dedicated to Slf4j @see http://www.slf4j.org/ (MIT License) using Logback @see http://logback.qos.ch/ (EPL v1.0 / LGPL 2.1).

- LogbackGui.form
    Netbeans 7.1 form to use netbeans Swing editor

- ApplicationLogSingleton.java
    This class keeps into memory the full application log using the logback root logger 
    and a custom appender to store log messages into one ByteBuffer (memory)

    Usage: call ApplicationLogSingleton.getInstance() during your application startup

- ByteArrayOutputStreamAppender.java
    ByteArrayOutputStreamAppender is a custom OutputStreamAppender that stores log events into a memory byte buffer.
    It provides the method getLogOutput(from) to get the buffer content as a LogOutput (String)

- LogOutput.java
    This simple class is a container for both String and byte count


> Swing Logger GUI (edit level and show root logger)
> --------------------------------------------------
>
>                 Key: LBGENERAL-50
>                 URL: http://jira.qos.ch/browse/LBGENERAL-50
>             Project: logback-general
>          Issue Type: New Feature
>         Environment: linux x86_64 / sun jdk 1.6+
>            Reporter: Laurent Bourges
>            Assignee: Logback dev list
>            Priority: Trivial
>
> I was using JUL and loggui (http://www.informatrix.ch/loggui/index.html) to edit logger's level at runtime and look at application logs in our Swing applications; it is very useful when applications are deployed using Java Web Start (jnlp environment)
> I switched to SLF4J 1.6.4 / LOGBACK 1.0 last week. 
> As I wanted LogGui features for LogBack, I made it = LogbackGui (1 single and standalone java class): 
> This class provides two major functionnalities:
> - application log viewer
> - one simple  log GUI : Logger hierarchy browser / Level editor and displays current logs
> This class is dedicated to Slf4j @see http://www.slf4j.org/ (MIT License) using Logback @see http://logback.qos.ch/ (EPL v1.0 / LGPL 2.1).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list