Skip to content

Cannot disable logging via configuration file #24

@bennylut

Description

@bennylut

Hi, just came across your libraries - awsome stuff!

I wish to use the HostResolutionRequestInterceptor from the burningwave:tools repository.
When doing so, I have a lot of information printed to my log that I wish to remove:

2023-04-13 09:35:18.190 [main] - org.burningwave.core.assembler.StaticComponentContainer - (StaticComponentContainer.java:369) - 

	Configuration values for static components:

		background-executor.all-tasks-monitoring.enabled=\
			true
...

I followed the documentation and created a resource file burningwave.static.properties, which includes:

managed-logger.repository=autodetect
managed-logger.repository.enabled=false
buffer-handler.default-buffer-size=1024
buffer-handler.default-allocation-mode=ByteBuffer::allocateDirect
banner.hide=true

After creating this file the banner is not shown anymore but the logs are still printed, so I tried to configure the log level to OFF on StaticComponentContainer using logback:

// very crud just to check that it works..
(LoggerFactory.getLogger(StaticComponentContainer::class.java) as ch.qos.logback.classic.Logger).level = Level.OFF

But that still does not work..

Is there anything I am missing?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions