Package org.dspace.app.statistics
Class LogLine
java.lang.Object
org.dspace.app.statistics.LogLine
This class represents a single log file line and the operations that can be
performed on it
The components that it represents are: Date, Level, User, Action, and additional
Params
- Author:
- Richard Jones
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfind out if this log file line is after the given datebooleanbeforeDate(LocalDate compareDate) find out if this log file line is before the given dateget the action being performedgetDate()get the date of the log linegetLevel()get the level of this log lineget the parameters associated with the actiongetUser()get the user performing the logged actionbooleanfind out if the log line is of the given action.booleanfind out if the log line is of the given level.
-
Method Details
-
getDate
get the date of the log line- Returns:
- the date of this log line
-
getLevel
get the level of this log line- Returns:
- the level of the log line
-
getUser
get the user performing the logged action- Returns:
- the user performing the logged action
-
getAction
get the action being performed- Returns:
- the logged action
-
getParams
get the parameters associated with the action- Returns:
- the parameters associated with the action
-
beforeDate
find out if this log file line is before the given date- Parameters:
compareDate- the date to be compared to- Returns:
- true if the line is before the given date, false if not
-
afterDate
find out if this log file line is after the given date- Parameters:
compareDate- the date to be compared to- Returns:
- true if the line is after the given date, false if not
-
isLevel
find out if the log line is of the given level. Levels are either INFO, WARN or ERROR- Parameters:
level- the level we want to test for- Returns:
- true if the line is of the specified level, false if not
-
isAction
find out if the log line is of the given action. Actions are not directly constrained by the vocabulary, and any system module may define any action name for its behaviour- Parameters:
action- the action we want to test for- Returns:
- true if the line is of the specified action, false if not
-