Re: Issue of creating and configuring custom appenders

2014-06-05 Thread Matt Sicker
That sounds more like a text editor at that point. Interactive /usr/bin/tail On 4 June 2014 07:34, James Hutton wrote: > Yeah, ideally there's a limit to the buffer in both choices, however why > aren't you just logging to a file and using the jtextarea to display the > file contents? Then you

Re: Issue of creating and configuring custom appenders

2014-06-04 Thread James Hutton
Yeah, ideally there's a limit to the buffer in both choices, however why aren't you just logging to a file and using the jtextarea to display the file contents? Then you don't have as much a worry about memory usage. On Jun 4, 2014 8:27 AM, "Gary Gregory" wrote: > Note that you will shoot yoursel

Re: Issue of creating and configuring custom appenders

2014-06-04 Thread Gary Gregory
Note that you will shoot yourself in the foot with such an appender by causing memory to be exhausted unless the appender never lets the contents of the text area grow beyond some limit. Gary On Mon, Jun 2, 2014 at 3:05 AM, Alex Wu wrote: > Hi all, I have followed Ralph's suggestion in this is

Re: Issue of creating and configuring custom appenders

2014-06-04 Thread James Hutton
Maybe have the appender be the owner of the jtextarea such that you could call a gettextarea method when initializing your ui? Or you could buffer until you call an initialize method with the jtext area. With the first one not sure if you can write to the text area if it isn't in a frame, but I'm

Issue of creating and configuring custom appenders

2014-06-02 Thread Alex Wu
Hi all, I have followed Ralph's suggestion in this issue and the source code of ConsoleAppender from apache to tried to create a custom appender for appending logs to a JTextArea. https://issues.apache.org/jira/browse/LOG4J2-303 But I am having trouble to make it to work, could anyone please give