|
|||||||||
| Home >> All >> com >> eireneh >> util >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.util.event
Class FileCaptureListener

java.lang.Objectcom.eireneh.util.event.FileCaptureListener
- All Implemented Interfaces:
- CaptureListener, java.util.EventListener
- public class FileCaptureListener
- extends java.lang.Object
- implements CaptureListener
- extends java.lang.Object
This class listens to Logger messages and copies them to a file.
|
Distribution Licence: Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below. The copyright to this program is held by it's authors. |
- Version:
- D0.I0.T0
| Field Summary | |
private static java.lang.String |
default_filename
The name of the file that we log to |
private java.lang.String |
filename
The name of the file that we log to |
private static FileCaptureListener |
li
The listener that pops up the ExceptionPanes |
private java.io.PrintWriter |
out
The stream to log to |
| Constructor Summary | |
FileCaptureListener()
|
|
| Method Summary | |
void |
captureException(CaptureEvent ev)
Called whenever Reporter.informUser() is passed an Exception |
void |
captureMessage(CaptureEvent ev)
Called whenever Reporter.informUser() is passed an Exception |
static java.lang.String |
getDefaultOutputFilename()
What file are we writing to? |
static boolean |
getHelpDeskListener()
Get the listening status |
java.lang.String |
getOutputFilename()
What file are we writing to? |
static void |
setDefaultOutputFilename(java.lang.String default_filename)
What file are we writing to? |
static void |
setHelpDeskListener(boolean joined)
You must call setHelpDeskListener() in order to start logging messages sent to the Log, and in order to properly close this class you must call it again (with false). |
void |
setOutputFilename(java.lang.String filename)
What file are we writing to? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
out
private java.io.PrintWriter out
- The stream to log to
filename
private java.lang.String filename
- The name of the file that we log to
default_filename
private static java.lang.String default_filename
- The name of the file that we log to
li
private static FileCaptureListener li
- The listener that pops up the ExceptionPanes
| Constructor Detail |
FileCaptureListener
public FileCaptureListener()
| Method Detail |
captureMessage
public void captureMessage(CaptureEvent ev)
- Called whenever Reporter.informUser() is passed an Exception
- Specified by:
captureMessagein interfaceCaptureListener
captureException
public void captureException(CaptureEvent ev)
- Called whenever Reporter.informUser() is passed an Exception
- Specified by:
captureExceptionin interfaceCaptureListener
setOutputFilename
public void setOutputFilename(java.lang.String filename)
- What file are we writing to?
getOutputFilename
public java.lang.String getOutputFilename()
- What file are we writing to?
setDefaultOutputFilename
public static void setDefaultOutputFilename(java.lang.String default_filename)
- What file are we writing to?
getDefaultOutputFilename
public static java.lang.String getDefaultOutputFilename()
- What file are we writing to?
setHelpDeskListener
public static void setHelpDeskListener(boolean joined)
- You must call setHelpDeskListener() in order to start logging
messages sent to the Log, and in order to properly
close this class you must call it again (with false).
getHelpDeskListener
public static boolean getHelpDeskListener()
- Get the listening status
|
|||||||||
| Home >> All >> com >> eireneh >> util >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.eireneh.util.event.FileCaptureListener