quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.73k stars 2.67k forks source link

Minimal logging by default #404

Closed FroMage closed 5 years ago

FroMage commented 5 years ago

Current test run in IDE produces this logging:

[INFO] H2 database started in TCP server mode
2019-01-02 11:37:37,659 atlantis RemoteTestRunner[18627] INFO  [o.j.s.d.ShamrockAugmentor] (main) Beginning shamrock augmentation
2019-01-02 11:37:37,776 atlantis RemoteTestRunner[18627] INFO  [o.j.threads] (main) JBoss Threads version 3.0.0.Alpha4
2019-01-02 11:37:38,280 atlantis RemoteTestRunner[18627] INFO  [o.h.Version] (build-) HHH000412: Hibernate Core {5.4.0-protean-0.0.1}
2019-01-02 11:37:38,282 atlantis RemoteTestRunner[18627] INFO  [o.h.c.Environment] (build-) HHH000206: hibernate.properties not found
2019-01-02 11:37:38,424 atlantis RemoteTestRunner[18627] INFO  [o.j.s.a.d.processor] (build-) Index bean class: org.jboss.shamrock.example.rest.RestInterface$$RestClientProxy
2019-01-02 11:37:38,470 atlantis RemoteTestRunner[18627] INFO  [o.j.s.s.d.processor] (build-) Found scheduled business methods on a class org.jboss.shamrock.example.scheduler.ExampleJobs with no annotations - adding @Singleton
2019-01-02 11:37:38,512 atlantis RemoteTestRunner[18627] INFO  [o.j.p.a.p.BeanDeployment] (build-) Bean deployment created in 80 ms
2019-01-02 11:37:38,533 atlantis RemoteTestRunner[18627] INFO  [o.j.p.a.p.BeanDeployment] (build-) Bean deployment initialized in 20 ms
2019-01-02 11:37:38,691 atlantis RemoteTestRunner[18627] INFO  [o.j.p.a.p.BeanProcessor] (build-) Generated 211 resources in 146 ms
2019-01-02 11:37:38,902 atlantis RemoteTestRunner[18627] INFO  [o.j.s.d.ShamrockAugmentor] (main) Shamrock augmentation completed in 1243ms
REGISTER TRACER
2019-01-02 11:37:38,959 atlantis RemoteTestRunner[18627] INFO  [c.a.a.arjuna] (main) ARJUNA012170: TransactionStatusManager started on port 40197 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
2019-01-02 11:37:38,971 atlantis RemoteTestRunner[18627] INFO  [o.h.v.i.u.Version] (main) HV000001: Hibernate Validator 6.1.0.Alpha2
2019-01-02 11:37:39,023 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-6) Enhancing [org.jboss.shamrock.example.jpa.SequencedAddress] as Entity
2019-01-02 11:37:39,023 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-10) Enhancing [org.jboss.shamrock.example.jpa.WorkAddress] as Composite
2019-01-02 11:37:39,023 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-1) Enhancing [org.jboss.shamrock.example.jpa.Address] as Composite
2019-01-02 11:37:39,023 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-8) Extended enhancement of [org.jboss.shamrock.example.jpa.Animal]
2019-01-02 11:37:39,023 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-13) Enhancing [org.jboss.shamrock.example.jpa.Human] as MappedSuperclass
2019-01-02 11:37:39,024 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-16) Enhancing [org.jboss.shamrock.example.jpa.Person] as Entity
2019-01-02 11:37:39,027 atlantis RemoteTestRunner[18627] INFO  [o.h.b.e.s.Enhancer] (pool-2-thread-5) Enhancing [org.jboss.shamrock.example.jpa.Customer] as Entity
2019-01-02 11:37:39,186 atlantis RemoteTestRunner[18627] INFO  [o.j.s.jpa] (main) List of entities found by Shamrock deployment:
[org.jboss.shamrock.examples.common.Clown, org.jboss.shamrock.example.jpa.Human, org.jboss.shamrock.example.jpa.Animal, org.jboss.shamrock.example.jpa.Person, org.jboss.shamrock.example.jpa.Customer, org.jboss.shamrock.example.jpa.SequencedAddress, org.jboss.shamrock.example.jpa.Address, org.jboss.shamrock.example.jpa.WorkAddress]
2019-01-02 11:37:39,193 atlantis RemoteTestRunner[18627] INFO  [o.h.p.feature] (main) Hibernate Features Enabled
2019-01-02 11:37:39,307 atlantis RemoteTestRunner[18627] INFO  [i.s.f.DefaultHystrixConcurrencyStrategy] (main) ### Privilleged Thread Factory used ###
2019-01-02 11:37:39,307 atlantis RemoteTestRunner[18627] INFO  [i.s.f.HystrixInitializer] (main) Hystrix concurrency strategy used: DefaultHystrixConcurrencyStrategy
2019-01-02 11:37:39,333 atlantis RemoteTestRunner[18627] WARN  [c.n.c.s.URLConfigurationSource] (main) No URLs will be polled as dynamic configuration sources.
2019-01-02 11:37:39,333 atlantis RemoteTestRunner[18627] INFO  [c.n.c.s.URLConfigurationSource] (main) To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2019-01-02 11:37:39,336 atlantis RemoteTestRunner[18627] INFO  [o.j.p.arc] (main) ArC DI container initialized [beans=85, observers=2]
2019-01-02 11:37:39,344 atlantis RemoteTestRunner[18627] INFO  [i.s.o.a.OpenApiDocument] (main) OpenAPI document initialized: io.smallrye.openapi.api.models.OpenAPIImpl@3aa078fd
2019-01-02 11:37:39,354 atlantis RemoteTestRunner[18627] INFO  [o.h.j.i.u.LogHelper] (main) HHH000204: Processing PersistenceUnitInfo [
    name: templatePU
    ...]
2019-01-02 11:37:39,508 atlantis RemoteTestRunner[18627] INFO  [o.h.a.c.Version] (main) HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2019-01-02 11:37:39,676 atlantis RemoteTestRunner[18627] INFO  [o.h.d.Dialect] (main) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL95Dialect
2019-01-02 11:37:39,703 atlantis RemoteTestRunner[18627] INFO  [o.h.e.j.e.i.LobCreatorBuilderImpl] (main) HHH000422: Disabling contextual LOB creation as connection was null
2019-01-02 11:37:39,710 atlantis RemoteTestRunner[18627] INFO  [o.h.t.BasicTypeRegistry] (main) HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@7e8dcdaa
2019-01-02 11:37:39,933 atlantis RemoteTestRunner[18627] INFO  [o.j.s.metrics] (main) Creating registries
2019-01-02 11:37:39,983 atlantis RemoteTestRunner[18627] WARN  [i.u.w.jsr] (main) UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2019-01-02 11:37:39,985 atlantis RemoteTestRunner[18627] INFO  [i.u.w.jsr] (main) UT026003: Adding annotated server endpoint class org.jboss.shamrock.example.websocket.EchoSocket for path /echo
2019-01-02 11:37:40,147 atlantis RemoteTestRunner[18627] INFO  [o.j.r.r.i18n] (main) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.jboss.shamrock.example.rest.TestApplication
2019-01-02 11:37:40,234 atlantis RemoteTestRunner[18627] INFO  [o.h.e.j.e.i.LobCreatorBuilderImpl] (main) HHH000422: Disabling contextual LOB creation as connection was null
2019-01-02 11:37:40,344 atlantis RemoteTestRunner[18627] INFO  [o.h.o.beans] (main) HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, but CDI is available on the Hibernate ClassLoader.
2019-01-02 11:37:40,617 atlantis RemoteTestRunner[18627] INFO  [o.h.e.t.j.p.i.JtaPlatformInitiator] (main) HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2019-01-02 11:37:40,656 atlantis RemoteTestRunner[18627] INFO  [o.j.s.a.r.DataSourceProducer] (main) Started data source jdbc:h2:tcp://localhost/mem:test
2019-01-02 11:37:40,724 atlantis RemoteTestRunner[18627] INFO  [o.h.t.s.i.SchemaCreatorImpl] (main) HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@442f92e6'
2019-01-02 11:37:40,736 atlantis RemoteTestRunner[18627] INFO  [o.j.s.u.r.UndertowDeploymentTemplate] (main) Starting Undertow on port 8080
2019-01-02 11:37:40,751 atlantis RemoteTestRunner[18627] INFO  [o.xnio] (main) XNIO version 3.6.5.Final
2019-01-02 11:37:40,766 atlantis RemoteTestRunner[18627] INFO  [o.x.nio] (main) XNIO NIO Implementation Version 3.6.5.Final
2019-01-02 11:37:40,881 atlantis RemoteTestRunner[18627] INFO  [o.q.i.StdSchedulerFactory] (main) Using default implementation for ThreadExecutor
2019-01-02 11:37:40,895 atlantis RemoteTestRunner[18627] INFO  [o.q.c.SchedulerSignalerImpl] (main) Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2019-01-02 11:37:40,896 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Quartz Scheduler v.2.3.0 created.
2019-01-02 11:37:40,896 atlantis RemoteTestRunner[18627] INFO  [o.q.s.RAMJobStore] (main) RAMJobStore initialized.
2019-01-02 11:37:40,897 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Scheduler meta-data: Quartz Scheduler (v2.3.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

2019-01-02 11:37:40,897 atlantis RemoteTestRunner[18627] INFO  [o.q.i.StdSchedulerFactory] (main) Quartz scheduler 'DefaultQuartzScheduler' initialized from an externally provided properties instance.
2019-01-02 11:37:40,897 atlantis RemoteTestRunner[18627] INFO  [o.q.i.StdSchedulerFactory] (main) Quartz scheduler version: 2.3.0
2019-01-02 11:37:40,898 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) JobFactory set to: org.jboss.shamrock.scheduler.runtime.QuartzScheduler$1@444cc791
2019-01-02 11:37:40,907 atlantis RemoteTestRunner[18627] INFO  [o.j.s.s.r.QuartzScheduler] (main) Scheduled business method org.jboss.shamrock.example.scheduler.ExampleJobs#checkCron with config @org.jboss.shamrock.scheduler.api.Scheduled(delay=0, delayUnit=MINUTES, cron="0/5 * * * * ?", every="")
2019-01-02 11:37:40,909 atlantis RemoteTestRunner[18627] INFO  [o.j.s.s.r.QuartzScheduler] (main) Scheduled business method org.jboss.shamrock.example.scheduler.ExampleJobs#checkCronConfig with config @org.jboss.shamrock.scheduler.api.Scheduled(delay=0, delayUnit=MINUTES, cron="{schedulerservice.cron.expr}", every="")
2019-01-02 11:37:40,910 atlantis RemoteTestRunner[18627] INFO  [o.j.s.s.r.QuartzScheduler] (main) Scheduled business method org.jboss.shamrock.example.scheduler.ExampleJobs#checkEvery with config @org.jboss.shamrock.scheduler.api.Scheduled(delay=0, delayUnit=MINUTES, cron="", every="10s")
2019-01-02 11:37:40,910 atlantis RemoteTestRunner[18627] INFO  [o.j.s.s.r.QuartzScheduler] (main) Scheduled business method org.jboss.shamrock.example.scheduler.ExampleJobs#checkEvery with config @org.jboss.shamrock.scheduler.api.Scheduled(delay=0, delayUnit=MINUTES, cron="", every="20s")
2019-01-02 11:37:40,910 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2019-01-02 11:37:40,911 atlantis RemoteTestRunner[18627] INFO  [o.j.shamrock] (main) Shamrock started in 2003.902ms
cronFiveSeconds
checkCronConfig - scheduled at 2019-01-02T10:37:40Z, next fire time: 2019-01-02T10:37:50Z
everyNSeconds - scheduled at 2019-01-02T10:37:40.910Z, next fire time: 2019-01-02T10:38:00.910Z
everyNSeconds - scheduled at 2019-01-02T10:37:40.909Z, next fire time: 2019-01-02T10:37:50.909Z
2019-01-02 11:37:41,212 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
2019-01-02 11:37:41,212 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
2019-01-02 11:37:41,212 atlantis RemoteTestRunner[18627] INFO  [o.q.c.QuartzScheduler] (main) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
2019-01-02 11:37:41,213 atlantis RemoteTestRunner[18627] INFO  [o.j.p.arc] (main) ArC DI container shut down
2019-01-02 11:37:41,213 atlantis RemoteTestRunner[18627] INFO  [o.j.shamrock] (main) Shamrock stopped in 23.602ms
[INFO] H2 database was shut down

None of this belongs in the default output that should be logged, which should be strictly limited to:

Anything else has to be weighted against this question: “is this useful for running this application by a user who is not a developper?”.

If we cannot fix upstream, we should just filter those sorts of messages to adjust their log levels.

FroMage commented 5 years ago

Related to #283

emmanuelbernard commented 5 years ago

Related to https://github.com/jbossas/protean-shamrock/issues/406

FroMage commented 5 years ago

Related PR: #585

mkouba commented 5 years ago

Closing - out of date.