public class FilteredLog extends Object implements Serializable
| Constructor and Description |
|---|
FilteredLog(String title)
Creates a new
FilteredLog for a Report. |
FilteredLog(String title,
int maxLines)
Creates a new
FilteredLog for a Report. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getErrorMessages()
Returns the error messages that have been reported since the creation of this set of issues.
|
List<String> |
getInfoMessages()
Returns the info messages that have been reported since the creation of this set of issues.
|
void |
logError(String format,
Object... args)
Logs the specified error message.
|
void |
logException(Exception exception,
String format,
Object... args)
Logs the specified exception.
|
void |
logInfo(String format,
Object... args)
Logs the specified information message.
|
void |
logSummary()
Writes a summary message to the reports' error log that denotes the total number of errors that have been
reported.
|
int |
size()
Returns the total number of errors that have been reported.
|
public FilteredLog(String title)
title - the title of the error messagespublic FilteredLog(String title, int maxLines)
FilteredLog for a Report.title - the title of the error messagesmaxLines - the maximum number of lines to log@FormatMethod public void logInfo(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logError(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.@FormatMethod public void logException(Exception exception, String format, Object... args)
exception - the exception to logformat - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.public int size()
public void logSummary()
public List<String> getInfoMessages()
Copyright © 2016–2019. All rights reserved.