Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no works .groovy configuration logging file #12567

Closed
JJAM2014 opened this issue Jun 7, 2022 · 2 comments
Closed

no works .groovy configuration logging file #12567

JJAM2014 opened this issue Jun 7, 2022 · 2 comments

Comments

@JJAM2014
Copy link

JJAM2014 commented Jun 7, 2022

Expected Behavior

I have upgraded my system from 4.x version to 5.x grails version but in the documentation is said

logging:
config: /Users/me/config/filelogback-logging.groovy

Should recognize .groovy extension

Actual Behaviour

Logging system failed to initialize using configuration from '/Users/xxx/.grails/filelogback-logging.groovy'
Caused by: ch.qos.logback.core.LogbackException: Unexpected filename extension of file [file:/C:/Users/xxx/filelogback-logging.groovy]. Should be .xml

only recognize .xml extension

Steps To Reproduce

./gradle bootRun

Environment Information

I have configuration below

grailsVersion=5.1.7
grailsGradlePluginVersion=5.1.3
groovyVersion=3.0.7
gorm.version=7.2.1
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
windows 10
JDK JAVA 11

Example Application

No response

Version

5.1.7

@arixmkii
Copy link

arixmkii commented Jun 7, 2022

Upstream (logback) removed support of groovy config as a security precaution. Version bump happened with this release https://github.com/grails/grails-core/releases/tag/v5.1.2

May be some updates are missing in the docs.

Some hot discussions here

@JJAM2014
Copy link
Author

JJAM2014 commented Jun 7, 2022

Dear arixmkii,

thanks you very much

best regards,

José

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants