|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.logging.AbstractLogger
public abstract class AbstractLogger
Interface that all loggers implement.
Field Summary | |
---|---|
protected Blog |
blog
the blog that this instance is associated with, and logging for |
Constructor Summary | |
---|---|
AbstractLogger(Blog blog)
Creates a new log associated with the given blog. |
Method Summary | |
---|---|
Log |
getLog()
Gets the log for today. |
Log |
getLog(int year,
int month)
Gets the log for a given year and month. |
abstract Log |
getLog(int year,
int month,
int day)
Gets the log for a given year, month and day. |
java.lang.String |
getLogFile()
Gets a copy of the log file for today. |
java.lang.String |
getLogFile(int year,
int month)
Gets a copy of the log file for a given year and month. |
abstract java.lang.String |
getLogFile(int year,
int month,
int day)
Gets a copy of the log file for a given year, month and day. |
LogSummary |
getLogSummary()
Gets the log summary for today. |
LogSummary |
getLogSummary(int year)
Gets the log summary information for the given year. |
LogSummary |
getLogSummary(int year,
int month)
Gets the log summary information for the given year and month. |
abstract LogSummary |
getLogSummary(int year,
int month,
int day)
Gets the log summary information for the given year, month and day. |
abstract void |
log(HttpServletRequest request,
int status)
Logs a HTTP request. |
abstract void |
start()
Called to start this logger. |
abstract void |
stop()
Called to stop this logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Blog blog
Constructor Detail |
---|
public AbstractLogger(Blog blog)
blog
- a Blog instanceMethod Detail |
---|
public abstract void log(HttpServletRequest request, int status)
request
- a HttpServletRequestpublic abstract void start()
public abstract void stop()
public abstract java.lang.String getLogFile(int year, int month, int day)
year
- the year to get entries formonth
- the month to get entries forday
- the day to get entries for
public java.lang.String getLogFile()
public java.lang.String getLogFile(int year, int month)
year
- the year to get entries formonth
- the month to get entries for
public abstract Log getLog(int year, int month, int day)
year
- the year to get entries formonth
- the month to get entries forday
- the day to get entries for
public Log getLog()
public Log getLog(int year, int month)
year
- the year to get entries formonth
- the month to get entries for
public abstract LogSummary getLogSummary(int year, int month, int day)
year
- the year to get entries formonth
- the month to get entries forday
- the day to get entries for
public LogSummary getLogSummary()
public LogSummary getLogSummary(int year, int month)
year
- the year to get entries formonth
- the month to get entries for
public LogSummary getLogSummary(int year)
year
- the year to get entries for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |