#1055: ScriptLogger.kt
projectforge-business/src/main/kotlin/org/projectforge/business/scripting/ScriptLogger.kt Logging Utility / Script Engine, projectforge-business/src/main/kotlin/org/projectforge/business/scripting/ScriptLogger.kt 110 lines · 66 code · 25 comments · 19 blank
Collects log messages during script execution with severity levels (ERROR, WARN, INFO, DEBUG). Each message is timestamped. Provides error(), warn(), info(), debug() methods accepting both direct values and lambdas. The hasErrors property checks for error-level messages. An internal add() method bridges Kotlin script compiler diagnostics (ScriptDiagnostic.Severity) to this logger. Exposed to scripts via log variable in ScriptExecutor.
Git History
868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
e233e6d69 Scripting: SseEmitter implemented for DynamicTable and Script logging.
aeff942b5 Script execution improved (logging for end user). DynamicTable.jsx: (refresh implementation fixed, refreshMethod is now supported.)
5f9bbfbd3 Fix typos in projectforge-business directory
4c8365b88 Kotlin scripting refactored (All tests OK)
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
a080e9dd5 WIP scripting...
5f7ef41b8 Copyright 2021 -> 2022
ceb63e8a1 Source code header: (C) 2001-2021.
40939519a wip: attachments.
3ba700c6d wip: AbstractPagesRest.category, AttachmentsPageRest. GlobalDefaultExceptionHandling and RestException introduced.
e86997ae3 React: Highlight last edited entry in list page.
7c79f1922 Copyright of source header -> 2020.
05244ff19 CopyRight of all Kotlin file-header updated or created.
bd3a3e824 Module projectforge-jax-rs renamed to projectforge-rest.
26235e630 Nothing real (imports).
665cbb071 Customizable result sets.
941a35161 ListData -> ResultSet