Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.modellib/models/ALogService.room')
-rw-r--r--runtime/org.eclipse.etrice.modellib/models/ALogService.room11
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/org.eclipse.etrice.modellib/models/ALogService.room b/runtime/org.eclipse.etrice.modellib/models/ALogService.room
index 3b1d70dbd..1fe1f2dec 100644
--- a/runtime/org.eclipse.etrice.modellib/models/ALogService.room
+++ b/runtime/org.eclipse.etrice.modellib/models/ALogService.room
@@ -77,10 +77,9 @@ RoomModel room.basic.service.logging {
Message open(fileName: string)
Message setLogLevel(l: int32)
Message close()
- Message log(data: LogData)
- Message internalLog(data: InternalLogData)
+ private Message internalLog(data: InternalLogData)
}
- outgoing { }
+
conjugate PortClass {
usercode {
"public static final int LOG_LEVEL_LOW = 1;"
@@ -93,10 +92,10 @@ RoomModel room.basic.service.logging {
"logLevel=l;"
"if (logLevel > LOG_LEVEL_HIGH) logLevel=LOG_LEVEL_HIGH;"
}
- handle log {
+ Operation log(logLevel: int32, userString: string) sends internalLog {
"long s;"
- "if (data.logLevel>this.logLevel){"
- "d.userString=data.userString;"
+ "if (logLevel>this.logLevel){"
+ "d.userString=userString;"
"s=System.currentTimeMillis();"
"d.timeStamp=Long.toString(s);"
"d.sender=getInstancePath();"

Back to the top