SessionLog, AbstractSessionLog
| Modifier and Type | Field and Description |
|---|---|
| private final Map | categoryLogLevelMap
Represents the Map that stores log levels per the name space strings. |
| protected String | fileName
The filename associated with this DefaultSessionLog, if it is being written out to a file |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | getLevel(String
the string representation of a EclipseLink category, e.g. "sql", "transaction" ... category)Overrides org. Implements org. Return the log level for the category name space. |
| public String | |
| protected void | |
| protected void | |
| public void | log(SessionLogEntry
SessionLogEntry that holds all the information for an EclipseLink logging event entry)Implements abstract org. Implements org. |
| public void | setLevel(int
the new log level level, String the string representation of an EclipseLink category, e.g. "sql", "transaction" ... category)Overrides org. Implements org. Set the log level for the category name space. |
| public void | |
| public boolean | Returns: true if the given message level will be logged for the given categorythe log request level level, String the string representation of an EclipseLink category, e.g. "sql", "transaction" ...* category)Overrides org. Implements org. |
| protected void | |
| protected void |
| categoryLogLevelMap | back to summary |
|---|---|
| private final Map<String, Integer> categoryLogLevelMap Represents the Map that stores log levels per the name space strings. The keys are category names. The values are log levels. | |
| fileName | back to summary |
|---|---|
| protected String fileName The filename associated with this DefaultSessionLog, if it is being written out to a file | |
| DefaultSessionLog | back to summary |
|---|---|
| public DefaultSessionLog() | |
| DefaultSessionLog | back to summary |
|---|---|
| public DefaultSessionLog(Writer writer) | |
| getLevel | back to summary |
|---|---|
| public int getLevel(String category) Overrides org. Implements org. Doc from org. PUBLIC: Return the log level for the category name space. | |
| getWriterFilename | back to summary |
|---|---|
| public String getWriterFilename() For the given writer, return it's associated filename. If associated writer does not have a filename, return null. | |
| initialize | back to summary |
|---|---|
| protected void initialize() Initialize the log to be backward-compatible with the original TopLink log. | |
| initialize | back to summary |
|---|---|
| protected void initialize(Writer writer) Initialize the log. | |
| log | back to summary |
|---|---|
| public void log(SessionLogEntry entry) Implements abstract org. Implements org. Log the entry. This writes the log entries information to a writer such as System.out or a file.
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(int level, String category) Overrides org. Implements org. Doc from org. PUBLIC: Set the log level for the category name space. | |
| setWriter | back to summary |
|---|---|
| public void setWriter(String aFileName) Set the writer that will receive the formatted log entries for a file name. | |
| shouldLog | back to summary |
|---|---|
| public boolean shouldLog(int level, String category) Overrides org. Implements org. Check if a message of the given level would actually be logged by the logger with name space built from the given session and category.
| |
| writeMessage | back to summary |
|---|---|
| protected void writeMessage(String message) throws IOException Append the specified message information to the writer. | |
| writeSeparator | back to summary |
|---|---|
| protected void writeSeparator() throws IOException Append the separator string to the writer. | |