info.informatica.log
Class HTTPLogger
java.lang.Object
info.informatica.log.BaseLogger
info.informatica.log.ExtendedLogger
info.informatica.log.HTTPLogger
- All Implemented Interfaces:
- Logger
public class HTTPLogger
- extends ExtendedLogger
HTTP-based Logger
- Version:
- 1.01
- Author:
- amengual at informatica dot info
|
Method Summary |
void |
closeLog()
|
void |
init(String s)
Initialize this logger
You only need to implement this method if applicable,
otherwise if you call it will throw an Exception |
void |
log(String ohost,
String clase,
int level,
String s)
If ohost is null, will log localhost address |
void |
log(String ohost,
String clase,
int level,
Throwable t,
String s)
This must be implemented by ExtendedLoggers |
HTTPLogger
public HTTPLogger()
init
public void init(String s)
throws LogConfigException
- Description copied from class:
ExtendedLogger
- Initialize this logger
You only need to implement this method if applicable,
otherwise if you call it will throw an Exception
- Overrides:
init in class ExtendedLogger
- Parameters:
s - the URL to which POST the log messages
- Throws:
LogConfigException
log
public void log(String ohost,
String clase,
int level,
String s)
- If ohost is null, will log localhost address
- Specified by:
log in class ExtendedLogger
- Parameters:
ohost - Origin hostclase - Class producing the loglevel - Log levels - Log message
log
public void log(String ohost,
String clase,
int level,
Throwable t,
String s)
- Description copied from class:
ExtendedLogger
- This must be implemented by ExtendedLoggers
- Specified by:
log in class ExtendedLogger
- Parameters:
ohost - Origin hostclase - Class producing the loglevel - Log levelt - The throwable exception to be loggeds - Log message
closeLog
public void closeLog()
- Specified by:
closeLog in class BaseLogger