Interface LogModelInterface
- All Superinterfaces:
Remote,Serializable
- All Known Implementing Classes:
LogModel,LogModelSkeleton,LogModelStub
Interface to access log model.
- Version:
- 10.1.1
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a new log event to the log model.Archive all prepared events.voidcleanEvent(LogLevel level) Clean all archived log events with a specific level.voidEnd the current log model and finalize all included objects.org.jdom2.DocumentGet all archived change messages as a XML file content.org.jdom2.DocumentGet all archived warnings, errors and fatal error messages as a XML file content.getLastLogEvent(LogLevel level) Get all archived log events of a specific level since last call of this method.getLogEvent(LogLevel level) Get all archived log events of a specific level.booleanHas there been an abort exception thrown?booleanisLevelLogged(LogLevel iLevel) Check if messages of the given log level are logged.voidPrepare all new events.
-
Method Details
-
append
Append a new log event to the log model.- Parameters:
level- Log levelobj- Message object- Throws:
RemoteException
-
isLevelLogged
Check if messages of the given log level are logged.- Parameters:
iLevel- log level to check- Returns:
- true, if the log level is equal or greater than the log level set by option "LogLevel".
- Throws:
RemoteException
-
getLogEvent
Get all archived log events of a specific level.- Parameters:
level- Log level- Returns:
- List of log events
- Throws:
RemoteExceptionM2MException
-
getLastLogEvent
Get all archived log events of a specific level since last call of this method.- Parameters:
level- Log level- Returns:
- List of log events
- Throws:
RemoteExceptionM2MException
-
hasAborted
Has there been an abort exception thrown?- Returns:
- True, if there has been an abort exception thrown.
- Throws:
RemoteExceptionM2MException
-
cleanEvent
Clean all archived log events with a specific level.- Parameters:
level- Log level- Throws:
RemoteException
-
prepareEvents
Prepare all new events. Since the preparation accesses the model element model, this call has to be synchronized with the model element model access. Preparation means that a prepared message is no longer related to the model element model, e.g. contains only strings. It it now ready to be serialized and archived.- Throws:
RemoteException
-
archiveEvents
Archive all prepared events. An archived event is also available to be visualized to the user.- Returns:
- List of prepared log events
- Throws:
RemoteException
-
getChangeAsXML
Get all archived change messages as a XML file content.- Returns:
- all changes as a XML string
- Throws:
RemoteExceptionM2MException
-
getErrorAsXML
Get all archived warnings, errors and fatal error messages as a XML file content.- Returns:
- all changes as a XML string
- Throws:
RemoteExceptionM2MException
-
finalizeSession
End the current log model and finalize all included objects. Close files, streams, etc.- Throws:
RemoteException
-