Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions launcher/java22/src/main/resources/launcher.cnl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ var cloudnet.node.memory 256
#var cloudnet.versioncache.path local/versioncache
# Sets the path to the cloudnet log directory
#var cloudnet.log.path local/logs
# Sets the path to the logback properties file which allows configuring the log levels of individual loggers.
#var cloudnet.log.properties.file logback.properties
# Sets the timeout until a node gets marked as disconnected from the local node. This does not mean that the node will
# be removed completely from the system, there is a grace period for the node to reconnect to this node (see the following
# setting for this)
Expand Down
4 changes: 4 additions & 0 deletions node/impl/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<!-- variables used in the logback configuration. Can be set using system properties. -->
<variable name="cloudnet.log.path" value="${cloudnet.log.path:-local/logs}"/>
<variable name="cloudnet.log.level" value="${cloudnet.log.level:-DEBUG}"/>
<variable name="cloudnet.log.properties.file" value="${cloudnet.log.properties.file:-logback.properties}"/>

<!-- allow configuring log levels using properties file -->
<propertiesConfigurator optional="true" file="${cloudnet.log.properties.file}"/>

<conversionRule conversionWord="levelColor"
class="eu.cloudnetservice.node.impl.console.log.ConsoleLevelConversion"/>
Expand Down
7 changes: 7 additions & 0 deletions wrapper-jvm/impl/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
<!-- variables used in the logback configuration. Can be set using system properties. -->
<variable name="cloudnet.log.path" value="${cloudnet.wrapper.log.path:-.wrapper/logs}"/>
<variable name="cloudnet.log.level" value="${cloudnet.wrapper.log.level:-DEBUG}"/>
<variable
name="cloudnet.log.properties.file"
value="${cloudnet.wrapper.log.properties.file:-.wrapper/logback.properties}"
/>

<!-- allow configuring log levels using properties file -->
<propertiesConfigurator optional="true" file="${cloudnet.log.properties.file}"/>

<property name="LOG_PATTERN" value="[%d{dd.MM HH:mm:ss.SSS}] %-5level: %msg%n"/>
<appender name="Rolling" class="RollingFileAppender">
Expand Down
Loading