--- title: "Log message" slug: "core-log-message-actor-configuration" updated: 2026-04-02T06:50:15Z published: 2026-04-02T06:50:15Z canonical: "docs.lobstersoftware.com/core-log-message-actor-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Log message *See also:* [Server logging](/v1/docs/en/administration-system-logging) > [!NOTE] > Event action – Abstract > > **Purpose**: The [Log message](/v1/docs/en/core-log-message-actor-configuration) event action generates an entry in a log file of the **Lobster Data Platform/Orchestration** server or the *browser* console, depending on the context, if the *log level* setting provides for this for the **Level** assigned when the **Message** was created. > > > [!TIP] > > Tooltip > > > > - **Usage**: A **Message** is sent to a *logger* addressed by **Name**, which can contain [Localization](/v1/docs/en/core-localization-entry) **Parameters**. Whether a log entry is written depends on the comparison between the **Level** of the message and the *log Level* setting for the addressed *logger* (see manual for details). Depending on the **Level**, one of the following log files is written: > > - `Lobster Data Platform / Orchestration/error.log `for the **Level** `FATAL` and `ERROR`. > > - `Lobster Data Platform / Orchestration/message.log `for all other **Levels** (except `OFF`). > > - **Parameter:** > > - **Name**: Text value that names the *logger* to be used. > > - **Message**: Text body of the message, the placeholder for the **Parameter** (addressed by index `{0}`, `{1}`, etc.). > > - **Level**: Single selection for the *log level* (static enumeration) of the **Message** (*default* *value*: `DEBUG`). > > - **Parameter ({0},{1},...)**: Optional *value configurations* for text values that are inserted into placeholders in the **Message**. > > - **NOTE:** > > - For each new **Name**, the server starts a custom logger with the *log level* `INFO`, which can be customized via the [Server logging](/v1/docs/en/administration-system-logging) menu item. > > - If executed in the client context, the output only affects the *browser console* and related logging settings. ![images/download/attachments/189440346/image-2024-12-4_9-8-14-version-1-modificationdate-1733299694326-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-8-14-version-1-modificationdate-1733299694326-api-v2.png) The [Log message](/v1/docs/en/core-log-message-actor-configuration) event action generates an entry in a log file of the **Lobster Data Platform/Orchestration** server in the server context (in [Event handling](/v1/docs/en/administration-designer-workflow-action-event-handler-configuration)), provided that the *log level* setting for the *logger* addressed by **Name** provides for this for the **Level** assigned when the **Message** was generated. - Messages with the **Level** `FATAL `or `ERROR `are always entered in the log file `Lobster Data Platform / Orchestration/error.log`. In the following table, the relevant cells are shaded light blue. - Messages with a different **Level** are always entered in the log file `Lobster Data Platform / Orchestration/message.log`. In the following table, the relevant cells are shaded in light red. The following logic applies to the comparison between the **Level** of a message and the *log level* set via the [Server logging](/v1/docs/en/administration-system-logging) menu item: | **Level →** [Server logging](/v1/docs/en/administration-system-logging) --- **↓** [Log message](/v1/docs/en/core-log-message-actor-configuration) | *Log Level s*ettings for the logger addressed by 'Name' | | --- | --- | | | `OFF` | `FATAL` | `ERROR` | `WARN` | `INFO*` | `DEBUG` | `TRACE` | `ALL` | | `(OFF)` | | | | `FATAL` | | `error.log` | | `ERROR` | | | `error.log` | | `WARN` | | | | `message.log` | | `INFO` | | | | | `message.log` | | `DEBUG*` | | | | | | `message.log` | | `TRACE, ALL` | | | | | | | `message.log` | **) In this table, the default values for the log level are marked with an asterisk.* > [!NOTE] > Background: Logger and log level > > --- > > The **Name** configuration parameter can be used to refer to the name of a predefined *logger* or to 'name' a custom *logger*. > > - If a string that refers to a predefined *logger* is specified as the **Name**, a decision is made as to whether a log entry is written depending on the *log level* for this *logger*, which may have been adjusted by [Server logging](/v1/docs/en/administration-system-logging). > - If no **Name** is specified, the [Log message](/v1/docs/en/core-log-message-actor-configuration) event action refers to the *logger* for its type (`de.lobster.scm.actionevent.actor.LogMessageActor`). > - As soon as a **Name** that is still unknown on the server side is used for the first time when the [Log message](/v1/docs/en/core-log-message-actor-configuration) event action is executed, an additional entry appears in the 'Log information' tab the next time the [Server logging](/v1/docs/en/administration-system-logging) view is opened. A *log level* other than the default (`INFO`) can be set there for the custom *logger*. > > **NOTE:** > - If the first mention of the new logger is made via a [Log message](/v1/docs/en/core-log-message-actor-configuration) with a **Level** below the default value `INFO`, no log entry is created. However, the *logger* will still appear in the 'Log information' list. > - As the *log level* `DEBUG` is the default for the **Level** of a [Log message](/v1/docs/en/core-log-message-actor-configuration) event action, no message is generated if no **Level** is selected and the **Name** is still unknown on the server side. In the client context ([Client Workflow](/v1/docs/en/frebehav-client-workflow), [Client workflows](/v1/docs/en/core-client-preferences-list-details-window-client-workflow)), the [Log message](/v1/docs/en/core-log-message-actor-configuration) event action only addresses the *browser* console, where a message may or may not appear depending on the settings selected for logging. ## Configuration Configuration example: ![images/download/attachments/189440346/image-2024-12-4_9-9-40-version-1-modificationdate-1733299780137-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-9-40-version-1-modificationdate-1733299780137-api-v2.png) *The following excerpt from an* `error.log` *of* **Lobster Data Platform/Orchestration** *illustrates the effect of the configuration parameters.* ![images/download/attachments/189440346/image-2024-12-4_9-11-31-version-1-modificationdate-1733299890757-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-11-31-version-1-modificationdate-1733299890757-api-v2.png) | Configuration parameters | Element | Description | | --- | --- | --- | | **Name** --- *Default value:* `(...LogMessageActor)` | [Text field](/v1/docs/en/custom-custom-text-field) for *direct input* *(Press the arrow in the bottom left-hand corner to switch!)* Value configuration whose return value is converted into a `String` | The **Name** designates the logger to be used. The **Name** appears in the log entry as a prefix in front of the **Message**, highlighted by square brackets: `[Name]`. In the example (static text): `Name` | | **Message** --- *Default value:* `null` | The **Message** appears at the end of the log entry. It can contain placeholders for values (`{0}, {1}, ...`), which are defined via a **Parameter** (see below). In the example (static text):` Message from {0}`with placeholder `{0}` for the [Company of session](/v1/docs/en/base-session-company-account-value) (see **Parameter**). | | **Level** --- *Default value:* `DEBUG` | [Combobox](/v1/docs/en/fre-combo-box-vo) for single selection from the static enumeration 'Log Level' (`LogLevel`) | The selected **Level** determines *whether* a log entry is written and, if so, to *which* log file. In addition, the internal name of the enumeration value appears between square brackets in the automatically generated header of the log entry. `[ERROR]` | | **Parameter ({0},{1},...)** --- *Default value:* `null` | [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) for *value* *configurations* whose return value is converted into a `String` | *Value configurations* can optionally be provided for a **Parameter**, which can be addressed in the **Message** via its index (ascending from `0`) between curly brackets (see note below). | **NOTE:** The following special cases must be taken into account when using parameters – similar to the handling for localization entries in [Localization](/v1/docs/en/core-localization-entry): - If the **Message** references a parameter with an index for which no entry exists under **Parameter ({0},{1},...)**, then the reference including the curly brackets appears as plain text (e.g. '`Message from {0}`'). - If the *value configuration* for a parameter referenced in the **Message** is either missing or returns 'No value' (`$null`) at runtime, the plain text '`null`' appears instead of the parameter (e.g. '`Message from null`'). ## Examples ### Simple use case: Logging the first login of a guest user account as INFO. When [Guest users](/v1/docs/en/base-guest-user) log on to **Lobster Data Platform/Orchestration** for the first time, a log entry with the **Level** `INFO` should be created with a note stating the ID of the guest user, the [Company of session](/v1/docs/en/base-session-company-account-value) and the [Role of session](/v1/docs/en/base-session-role-value). The log entry should refer to the **Name** `WELCOME `so that a custom *logger* with this name is created. Runtime example: | `16:49:37 NORMAL [600ms] [T231 /auth/clientEvent/CLIENT_LOGGED_IN [...]] [...] [INFO ] > > > > [WELCOME] Guest user #-8051 from Xflow AG as Querificus` | | --- | **NOTE:** The 'ID' (`id`) of the guest user appears here as a negative integer (`-8051`), as it is taken directly from the return value of the [User of session](/v1/docs/en/base-session-user-value) resolver, which differentiates between [Guest users](/v1/docs/en/base-guest-user) and [Users](/v1/docs/en/base-user) via the sign. Configuration: | The screenshot on the right shows an overview of the configuration for event handling with the [Log message](/v1/docs/en/core-log-message-actor-configuration) event action: - The **Triggering event** here is 'Client logged in' (see [Login (Events)](/v1/docs/en/core-authentication-event)) --- - The **Validating rule** uses a [With rule](/v1/docs/en/core-with-rule) to determine whether a guest user who has never logged in is now logging in: - The **Entity property resolver** defines the [User of session](/v1/docs/en/base-session-user-value) as a temporary *reference object* for the rules evaluated below. - An AND junction (see [Junction](/v1/docs/en/core-rule-junction)) of two rules follows below: - The [Check type](/v1/docs/en/core-check-type-rule) checks whether the *reference object* is a guest user. - The following [Entity property rule](/v1/docs/en/core-entity-property-rule) compares the [Object property](/v1/docs/en/core-property-resolver) 'Number of logins' (`loginCount`) with the static integer `0` to ensure that actions are only executed if the guest user has never logged in. --- - As the only **Action on passed rule**, a [Log message](/v1/docs/en/core-log-message-actor-configuration) event action is executed, the parameterization of which is explained below. | ![images/download/attachments/189440346/image-2024-12-4_9-13-9-version-1-modificationdate-1733299988759-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-13-9-version-1-modificationdate-1733299988759-api-v2.png) | | --- | --- | | - The static text `WELCOME` is entered directly as the **Name** for the [Log message](/v1/docs/en/core-log-message-actor-configuration) event action. - The **Message** with three placeholders for parameters (see below) is also defined statically via *direct input*: `Guest user #{0} from {1} as {2}` **NOTE:** As the log files mainly contain English content, [Localization](/v1/docs/en/core-localization-entry) is not used here (see [Value from localization](/v1/docs/en/core-resource-resolver)). - The **Level** is defined by selecting `INFO` in the combobox provided as the default. Technically, a [Static enumeration](/v1/docs/en/core-enum-value-editor) value resolver is used here, which refers to the static enumeration 'Log level' (`LogLevel`). - Three *value configurations* for the **Parameter ({0},{1},...)** follow: - `{0}`: The first value configuration reads the [Object property](/v1/docs/en/core-property-resolver) `id` from the return value of the [User of session](/v1/docs/en/base-session-user-value) resolver. - `{1}`: The second *value configuration* reads the 'Name' (`address.Name1`) field from the address of the company account returned by the [Company of session](/v1/docs/en/base-session-company-account-value) resolver. - `{2}`: The third *value configuration* reads the 'role name' (`roleName`) field from the return value of the [Role of session](/v1/docs/en/base-session-role-value) resolver. **NOTE:** For [Guest users](/v1/docs/en/base-guest-user), unique selections are mandatory for the 'company' (`companyId`) and 'role' (`roleId`) fields. However, as the internal field names suggest, the guest user account only references 'Company' and 'Role' without including their detailed data. As the relevant **Parameters** in the **Message** are supplied with plain text, access via a [Company of session](/v1/docs/en/base-session-company-account-value) and a [Role of session](/v1/docs/en/base-session-role-value) is more efficient here. | ![images/download/attachments/189440346/image-2024-12-4_9-14-5-version-1-modificationdate-1733300045042-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-14-5-version-1-modificationdate-1733300045042-api-v2.png) | ### More complex use case: Dynamically assign level for error.log entry As with the previous example, when a guest user logs in with a role other than the designated role '`XF_GUEST`', not only should the session be terminated, but a [Log message](/v1/docs/en/core-log-message-actor-configuration) should also be written to the `error.log`. The **Level** `FATAL` ('Super user', 'Super user limited') or `ERROR` (other roles) should be assigned to the message depending on the role used. Runtime example: | `18:29:02 [596ms] [T1499 /auth/clientEvent/CLIENT_LOGGED_IN [...]] [...] [FATAL] > > > > [WELCOME] Denied access to Guest user -8051 as Super user limited` | | --- | Configuration: | - The 'Client logged in' event serves as the triggering event (see [Login (Events)](/v1/docs/en/core-authentication-event)). --- - The **Validating rule** refers to the [User of session](/v1/docs/en/base-session-user-value) as a *reference object* for an AND [Junction](/v1/docs/en/core-rule-junction) via the **Entity property resolver**: - The [Check type](/v1/docs/en/core-check-type-rule) ensures that the login concerns a guest user. - In this case, a negated [Role rule](/v1/docs/en/base-role-rule) is evaluated, which is considered passed if a role *other* than the `XF_GUEST` role designated for [Guest users](/v1/docs/en/base-guest-user) is considered the [Role of session](/v1/docs/en/base-session-role-value). --- - As the **Action on passed rule**, two event actions should be executed: - The [Log message](/v1/docs/en/core-log-message-actor-configuration) event action ensures that the incident of an 'inappropriate' login as a guest user can be traced in the `error.log`. - The subsequent [Abort](/v1/docs/en/core-abort-actor) ensures that the formally legitimate session is terminated immediately in this case. **NOTE:** Since the logged out user will no longer see an error message triggered by an [Abort](/v1/docs/en/core-abort-actor) anyway, the 'Suppress' mode is selected. | ![images/download/attachments/189440346/image-2024-12-4_9-15-35-version-1-modificationdate-1733300134679-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-15-35-version-1-modificationdate-1733300134679-api-v2.png) | | --- | --- | | The [Log message](/v1/docs/en/core-log-message-actor-configuration) event action is configured as shown on the right: - The static text `WELCOME` is *input directly* as the **Name** (as above). - The **Message** with two placeholders for parameters is also created via *direct input*: `Denied access to Guest user {0} as {1}` - The **Level** is defined using a [Conditional value](/v1/docs/en/core-conditional-value-resolver) that distinguishes between two cases: - If a [Role rule](/v1/docs/en/base-role-rule) applies that uses particularly 'powerful' roles as a positive list, the **Level** 'Fatal' (`FATAL`) is assigned. - Otherwise, the **Level** 'Error' (`ERROR`) is assigned. - Both **Parameters** in the **Message** are supplied with the data from the return values for [User of session](/v1/docs/en/base-session-user-value) and [Role of session](/v1/docs/en/base-session-role-value). | ![images/download/attachments/189440346/image-2024-12-4_9-16-47-version-1-modificationdate-1733300206859-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-12-4_9-16-47-version-1-modificationdate-1733300206859-api-v2.png) |