public class Logger
extends java.lang.Object
Starting from the interaction with Eclipse WindowBuilder, by means of the
TermContainerPanel.notifyJotyDesignError
method, for the storage in
the log file read by the org.joty.jotyplugin.JotyDesignErrorWiew
, it
provides the logging activity either for the Application
object or
for the JotyServlet
object.
As part of the framework, it supports the duality of its own localization, as
it is invoked, stated that such a duality is provided by the calling
environment (typically other classes for the org.joty.common
package.
Any way the class provides enough degree of flexibility to be used along the application and in the server side, as it is needed.
The class introduces the concept of 'Host log' as the main target (file) for logging activity, no matter whether on the client side or on the server side its instance lives.
To make faster the detection of bugs, during the development, that is in
'debug' mode (see Configuration files), on the client side it uses the
Application#JotyMsg
method to intercept logging activity for direct
delivering of information to the tester/developer.
Application#checkWBE(java.awt.Container)
,
org.joty.workstation.gui.TermContainerPanel#notifyJotyDesignError
,
org.joty.jotyplugin.JotyDesignErrorWiew
,
org.joty.workstation.app.Application
,
org.joty.server.JotyServer
Modifier and Type | Field and Description |
---|---|
static org.joty.common.ApplMessenger |
m_app |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static void |
appendToHostLog(java.lang.String text) |
static void |
appendToHostLog(java.lang.String text,
boolean stackTraceToo) |
static void |
appendToHostLog(java.lang.String text,
boolean stackTraceToo,
boolean silent) |
static void |
appendToLog(java.lang.String fileName,
java.lang.String text) |
static void |
appendToLog(java.lang.String fileName,
java.lang.String text,
java.lang.Boolean stackTraceToo,
java.lang.String user,
boolean finalName) |
static void |
appInit() |
static void |
exceptionToHostLog(java.lang.Exception e) |
static void |
printStackTrace(java.io.PrintWriter writer) |
static void |
setDebugMode(boolean debug) |
static void |
setHostLogName(java.lang.String fileName,
java.lang.String dirPathName) |
static void |
stackTraceToHostLog(java.lang.String text) |
static void |
throwableToHostLog(java.lang.Throwable th) |
static void |
writeToLog(java.lang.String fileName,
java.lang.String text) |
public static void appendToHostLog(java.lang.String text)
public static void appendToHostLog(java.lang.String text, boolean stackTraceToo)
public static void appendToHostLog(java.lang.String text, boolean stackTraceToo, boolean silent)
public static void appendToLog(java.lang.String fileName, java.lang.String text)
public static void appendToLog(java.lang.String fileName, java.lang.String text, java.lang.Boolean stackTraceToo, java.lang.String user, boolean finalName)
public static void appInit()
public static void exceptionToHostLog(java.lang.Exception e)
public static void printStackTrace(java.io.PrintWriter writer)
public static void setDebugMode(boolean debug)
public static void setHostLogName(java.lang.String fileName, java.lang.String dirPathName)
public static void stackTraceToHostLog(java.lang.String text)
public static void throwableToHostLog(java.lang.Throwable th)
public static void writeToLog(java.lang.String fileName, java.lang.String text)