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

Error to Add staticField #1

Closed
woojuin opened this issue Jul 13, 2016 · 3 comments
Closed

Error to Add staticField #1

woojuin opened this issue Jul 13, 2016 · 3 comments

Comments

@woojuin
Copy link

woojuin commented Jul 13, 2016

thanks for making good library osiegmar!!

i have issue to use staticField.
when i use staticField then

Logging system failed to initialize using configuration from 'classpath:logback.xml'
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION
ERROR in ch.qos.logback.core.joran.action.NestedBasicPropertyIA - Unexpected aggregationType AS_BASIC_PROPERTY_COLLECTION

but when i remove staticfiled or there is no value in staticfield , then execute normally...
please give me a advise

localhost 12201 woojuin
  <shortPatternLayout class="ch.qos.logback.classic.PatternLayout">
    <pattern>%m%nopex</pattern>
  </shortPatternLayout>
  <fullPatternLayout class="ch.qos.logback.classic.PatternLayout">
    <pattern>%m</pattern>
  </fullPatternLayout>
  <staticField>os_name:win</staticField>
</layout>
@osiegmar
Copy link
Owner

Thanks for your feedback!

I think this is caused by a regression bug of logback 1.1.7 and should not affect earlier and later versions.

See http://jira.qos.ch/browse/LOGBACK-1158

Please let me know if downgrading or upgrading logback fixes your problem.

@osiegmar
Copy link
Owner

Closing this issue as I think this is not a bug/problem within logback-gelf - let me know, if I'm wrong.

@zachofalltrades
Copy link

I can confirm that I encountered this issue when using logback 1.1.7, and that the problem went away after updating to logback 1.1.9

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