<commit_before>{% set rundeckHome = getenv("RUNDECK_HOME", "/home/rundeck") %}
{% set strategy = getv("/rundeck/logging/strategy", "CONSOLE") %}
{% set ansiConsole = getv("/rundeck/logging/ansi/noconsolenoansi", "true") %}
{% set classLength = printf("{%s}", getv("/rundeck/logging/classlength", "2")) %}
{% set appender = "Console" %}

name = Rundeck Logging Configuration
property.baseDir = {{ rundeckHome }}/server/logs
property.ansiConsole = {{ansiConsole}}
property.classLength = {{classLength}}
property.prefix = {% verbatim %}[%style{%d{ISO8601}}{dim, noConsoleNoAnsi=${ansiConsole}}] %highlight{%-5p}{noConsoleNoAnsi=${ansiConsole}} %style{%c${classLength}}{cyan,noConsoleNoAnsi=${ansiConsole}}{% endverbatim %}

{% if strategy == "FILE" %}
{% set appender = "RollingFile" %}
{% endif %}

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = ${prefix} - %m%n
# Enable logging for everything. Rarely useful
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = STDOUT
{% if strategy == "FILE" %}
rootLogger.appenderRef.rundeck.ref = rundeck
{% endif %}

# Enable audit logging
{% if exists("/rundeck/logging/audit/enabled") %}
logger.authorization.name = com.dtolabs.rundeck.core.authorization
logger.authorization.level = info
logger.authorization.additivity = false
logger.authorization.appenderRef.stdout.ref = audit
{% endif %}

# Enable options remote URL logging
logger.rundeck.name = rundeckapp
logger.rundeck.level = info
logger.rundeck.additivity = false
logger.rundeck.appenderRef.stdout.ref = STDOUT

# Enable options remote URL logging
logger.options.name = com.dtolabs.rundeck.remoteservice.http.options
logger.options.level = info
logger.options.additivity = false
logger.options.appenderRef.stdout.ref = options

# Enable Job changes logging
logger.jobchanges.name = com.dtolabs.rundeck.data.jobs.changes
logger.jobchanges.level = info
logger.jobchanges.additivity = false
logger.jobchanges.appenderRef.stdout.ref = jobchanges

# Enable Execution event logging
logger.execevents.name = org.rundeck.execution.status
logger.execevents.level = info
logger.execevents.additivity = false
logger.execevents.appenderRef.stdout.ref = execevents

# Enable API request logging
logger.apirequests.name = org.rundeck.api.requests
logger.apirequests.level = info
logger.apirequests.additivity = false
logger.apirequests.appenderRef.stdout.ref = apirequests

# Enable Web access logging
logger.access.name = org.rundeck.web.requests
logger.access.level = info
logger.access.additivity = false
logger.access.appenderRef.access.ref = access

# Enable project logging
logger.project.name = org.rundeck.project.events
logger.project.level = info
logger.project.additivity = false
logger.project.appenderRef.stdout.ref = project

# Enable Storage logging
logger.storage.name = org.rundeck.storage.events
logger.storage.level = info
logger.storage.additivity = false
logger.storage.appenderRef.storage.ref = storage

# Enable Project manager logging
logger.prjmanager.name = grails.app.services.rundeck.services.ProjectManagerService
logger.prjmanager.level = info
logger.prjmanager.additivity = false
logger.prjmanager.appenderRef.stdout.ref = STDOUT

# Enable this logger to log Hibernate output
# handy to see its database interaction activity
logger.hibernate-core.name = org.hibernate
logger.hibernate-core.level = error
logger.hibernate-core.additivity = false
logger.hibernate-core.appenderRef.stdout.ref = STDOUT

# Enable this logger to see what Spring does, occasionally useful
logger.spring-core.name = org.springframework
logger.spring-core.level = warn
logger.spring-core.additivity = false
logger.spring-core.appenderRef.stdout.ref = STDOUT

#Quell a noisy WARN from this class
logger.springBeanPropertyDescriptor.name = org.springframework.beans.GenericTypeAwarePropertyDescriptor
logger.springBeanPropertyDescriptor.level = error
logger.springBeanPropertyDescriptor.additivity = false
logger.springBeanPropertyDescriptor.appenderRef.stdout.ref = STDOUT

# This logger covers all of Grails' internals
# Enable to see whats going on underneath.
logger.internals.name = org.codehaus.groovy.grails
logger.internals.level = warn
logger.internals.additivity = false
logger.internals.appenderRef.stdout.ref = STDOUT

# This logger is useful if you just want to see what Grails
# configures with Spring at runtime. Setting to debug will show
# each bean that is configured
logger.spring.name = org.codehaus.groovy.grails.commons.spring
logger.spring.level = warn
logger.spring.additivity = false
logger.spring.appenderRef.stdout.ref = STDOUT

# Interesting Logger to see what some of the Grails factory beans are doing
logger.bean-factory.name = org.codehaus.groovy.grails.beans.factory
logger.bean-factory.level = warn
logger.bean-factory.additivity = false
logger.bean-factory.appenderRef.stdout.ref = STDOUT

# This logger is for Grails' public APIs within the grails. package
logger.grails.name = grails
logger.grails.level = warn
logger.grails.additivity = false
logger.grails.appenderRef.stdout.ref = STDOUT

# Jetty
logger.jetty.name = org.mortbay.log
logger.jetty.level = warn
logger.jetty.additivity = false
logger.jetty.appenderRef.stdout.ref = STDOUT

# Grails Database Migration Plugin
logger.migration.name = org.grails.plugins.databasemigration
logger.migration.level = info
logger.migration.additivity = false
logger.migration.appenderRef.stdout.ref = STDOUT

# Liquibase Migrations
logger.liquibase.name = liquibase
logger.liquibase.level = info
logger.liquibase.additivity = false
logger.liquibase.appenderRef.stdout.ref = STDOUT

#
# file - DailyRollingFileAppender
#
{% if appender == "FILE" %}
appender.rundeck.type = RollingFile
appender.rundeck.name = rundeck
appender.rundeck.fileName = ${baseDir}/rundeck.log
appender.rundeck.append = true
appender.rundeck.bufferedIO = true
appender.rundeck.filePattern = ${baseDir}/rundeck.log.%d{yyyy-MM-dd}.gz
appender.rundeck.layout.type = PatternLayout
appender.rundeck.layout.pattern = ${prefix} [%t] - %m%n
appender.rundeck.policies.type = Policies
appender.rundeck.policies.time.type = TimeBasedTriggeringPolicy
appender.rundeck.policies.time.interval = 1
{% endif %}<commit_msg>Fix #7073 docker rolling logs not working<commit_after>{% set rundeckHome = getenv("RUNDECK_HOME", "/home/rundeck") %}
{% set strategy = getv("/rundeck/logging/strategy", "CONSOLE") %}
{% set ansiConsole = getv("/rundeck/logging/ansi/noconsolenoansi", "true") %}
{% set classLength = printf("{%s}", getv("/rundeck/logging/classlength", "2")) %}
{% set appender = "Console" %}

name = Rundeck Logging Configuration
property.baseDir = {{ rundeckHome }}/server/logs
property.ansiConsole = {{ansiConsole}}
property.classLength = {{classLength}}
property.prefix = {% verbatim %}[%style{%d{ISO8601}}{dim, noConsoleNoAnsi=${ansiConsole}}] %highlight{%-5p}{noConsoleNoAnsi=${ansiConsole}} %style{%c${classLength}}{cyan,noConsoleNoAnsi=${ansiConsole}}{% endverbatim %}

{% if strategy == "FILE" %}
{% set appender = "RollingFile" %}
{% endif %}

appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = ${prefix} - %m%n
# Enable logging for everything. Rarely useful
rootLogger.level = warn
rootLogger.appenderRef.stdout.ref = STDOUT
{% if strategy == "FILE" %}
rootLogger.appenderRef.rundeck.ref = rundeck
{% endif %}

# Enable audit logging
{% if exists("/rundeck/logging/audit/enabled") %}
logger.authorization.name = com.dtolabs.rundeck.core.authorization
logger.authorization.level = info
logger.authorization.additivity = false
logger.authorization.appenderRef.stdout.ref = audit
{% endif %}

# Enable options remote URL logging
logger.rundeck.name = rundeckapp
logger.rundeck.level = info
logger.rundeck.additivity = false
logger.rundeck.appenderRef.stdout.ref = STDOUT

# Enable options remote URL logging
logger.options.name = com.dtolabs.rundeck.remoteservice.http.options
logger.options.level = info
logger.options.additivity = false
logger.options.appenderRef.stdout.ref = options

# Enable Job changes logging
logger.jobchanges.name = com.dtolabs.rundeck.data.jobs.changes
logger.jobchanges.level = info
logger.jobchanges.additivity = false
logger.jobchanges.appenderRef.stdout.ref = jobchanges

# Enable Execution event logging
logger.execevents.name = org.rundeck.execution.status
logger.execevents.level = info
logger.execevents.additivity = false
logger.execevents.appenderRef.stdout.ref = execevents

# Enable API request logging
logger.apirequests.name = org.rundeck.api.requests
logger.apirequests.level = info
logger.apirequests.additivity = false
logger.apirequests.appenderRef.stdout.ref = apirequests

# Enable Web access logging
logger.access.name = org.rundeck.web.requests
logger.access.level = info
logger.access.additivity = false
logger.access.appenderRef.access.ref = access

# Enable project logging
logger.project.name = org.rundeck.project.events
logger.project.level = info
logger.project.additivity = false
logger.project.appenderRef.stdout.ref = project

# Enable Storage logging
logger.storage.name = org.rundeck.storage.events
logger.storage.level = info
logger.storage.additivity = false
logger.storage.appenderRef.storage.ref = storage

# Enable Project manager logging
logger.prjmanager.name = grails.app.services.rundeck.services.ProjectManagerService
logger.prjmanager.level = info
logger.prjmanager.additivity = false
logger.prjmanager.appenderRef.stdout.ref = STDOUT

# Enable this logger to log Hibernate output
# handy to see its database interaction activity
logger.hibernate-core.name = org.hibernate
logger.hibernate-core.level = error
logger.hibernate-core.additivity = false
logger.hibernate-core.appenderRef.stdout.ref = STDOUT

# Enable this logger to see what Spring does, occasionally useful
logger.spring-core.name = org.springframework
logger.spring-core.level = warn
logger.spring-core.additivity = false
logger.spring-core.appenderRef.stdout.ref = STDOUT

#Quell a noisy WARN from this class
logger.springBeanPropertyDescriptor.name = org.springframework.beans.GenericTypeAwarePropertyDescriptor
logger.springBeanPropertyDescriptor.level = error
logger.springBeanPropertyDescriptor.additivity = false
logger.springBeanPropertyDescriptor.appenderRef.stdout.ref = STDOUT

# This logger covers all of Grails' internals
# Enable to see whats going on underneath.
logger.internals.name = org.codehaus.groovy.grails
logger.internals.level = warn
logger.internals.additivity = false
logger.internals.appenderRef.stdout.ref = STDOUT

# This logger is useful if you just want to see what Grails
# configures with Spring at runtime. Setting to debug will show
# each bean that is configured
logger.spring.name = org.codehaus.groovy.grails.commons.spring
logger.spring.level = warn
logger.spring.additivity = false
logger.spring.appenderRef.stdout.ref = STDOUT

# Interesting Logger to see what some of the Grails factory beans are doing
logger.bean-factory.name = org.codehaus.groovy.grails.beans.factory
logger.bean-factory.level = warn
logger.bean-factory.additivity = false
logger.bean-factory.appenderRef.stdout.ref = STDOUT

# This logger is for Grails' public APIs within the grails. package
logger.grails.name = grails
logger.grails.level = warn
logger.grails.additivity = false
logger.grails.appenderRef.stdout.ref = STDOUT

# Jetty
logger.jetty.name = org.mortbay.log
logger.jetty.level = warn
logger.jetty.additivity = false
logger.jetty.appenderRef.stdout.ref = STDOUT

# Grails Database Migration Plugin
logger.migration.name = org.grails.plugins.databasemigration
logger.migration.level = info
logger.migration.additivity = false
logger.migration.appenderRef.stdout.ref = STDOUT

# Liquibase Migrations
logger.liquibase.name = liquibase
logger.liquibase.level = info
logger.liquibase.additivity = false
logger.liquibase.appenderRef.stdout.ref = STDOUT

#
# file - DailyRollingFileAppender
#
{% if strategy == "FILE" %}
appender.rundeck.type = RollingFile
appender.rundeck.name = rundeck
appender.rundeck.fileName = ${baseDir}/rundeck.log
appender.rundeck.append = true
appender.rundeck.bufferedIO = true
appender.rundeck.filePattern = ${baseDir}/rundeck.log.%d{yyyy-MM-dd}.gz
appender.rundeck.layout.type = PatternLayout
appender.rundeck.layout.pattern = ${prefix} [%t] - %m%n
appender.rundeck.policies.type = Policies
appender.rundeck.policies.time.type = TimeBasedTriggeringPolicy
appender.rundeck.policies.time.interval = 1
{% endif %}
{'fraction_non_alphanumeric': 0.11007343550446999, 'fraction_numerical': 0.0014367816091954023, 'mean_word_length': 5.542558746736292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1079136', 'n_tokens_mistral': 4057, 'n_tokens_neox': 3801, 'n_words': 818}