[FEATURE] LoggerFactory WARN #50

Closed
opened 2020-07-20 19:05:13 +00:00 by SlimeDog · 4 comments
SlimeDog commented 2020-07-20 19:05:13 +00:00 (Migrated from github.com)

Is your feature request related to a problem? Please describe.
On server start

[11:56:21] [Server thread/WARN]: [V10Lift] Loaded class org.slf4j.LoggerFactory from PureTickets v3.0.0 which is not a depend, softdepend or loadbefore of this plugin.
[11:56:21] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Starting...
[11:56:21] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Start completed.

Describe the solution you'd like
Please shade the LoggerFactory, rather than relying on PureTickets.
If possible, change the subsequent (hikari) WARN messages to INFO.

**Is your feature request related to a problem? Please describe.** On server start ``` [11:56:21] [Server thread/WARN]: [V10Lift] Loaded class org.slf4j.LoggerFactory from PureTickets v3.0.0 which is not a depend, softdepend or loadbefore of this plugin. [11:56:21] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Starting... [11:56:21] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Start completed. ``` **Describe the solution you'd like** Please shade the LoggerFactory, rather than relying on PureTickets. If possible, change the subsequent (hikari) WARN messages to INFO.
stijnb1234 commented 2020-07-20 19:14:16 +00:00 (Migrated from github.com)

Will shade hikariCP into the jar. This should fix the problem.

Will also look into the messages. But they are from hikariCP.

Will shade hikariCP into the jar. This should fix the problem. Will also look into the messages. But they are from hikariCP.
SlimeDog commented 2020-07-20 19:16:49 +00:00 (Migrated from github.com)

Will also look into the messages. But they are from hikariCP.

I imagine they are. But hopefully there is an option in the API to turn them off or modify the status to INFO.

> Will also look into the messages. But they are from hikariCP. I imagine they are. But hopefully there is an option in the API to turn them off or modify the status to INFO.
SlimeDog commented 2020-07-27 01:42:14 +00:00 (Migrated from github.com)

More on shutdown

[18:40:10] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Shutdown initiated...
[18:40:10] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Shutdown completed.
[18:40:10] [Server thread/WARN]: [Server thread] INFO co.uk.magmo.puretickets.lib.hikari.HikariDataSource - DB - Shutdown initiated...
[18:40:10] [Server thread/WARN]: [Server thread] INFO co.uk.magmo.puretickets.lib.hikari.HikariDataSource - DB - Shutdown completed
More on shutdown ``` [18:40:10] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Shutdown initiated... [18:40:10] [Server thread/WARN]: [Server thread] INFO nl.SBDeveloper.V10Lift.utils.hikari.HikariDataSource - V10Lift - Shutdown completed. [18:40:10] [Server thread/WARN]: [Server thread] INFO co.uk.magmo.puretickets.lib.hikari.HikariDataSource - DB - Shutdown initiated... [18:40:10] [Server thread/WARN]: [Server thread] INFO co.uk.magmo.puretickets.lib.hikari.HikariDataSource - DB - Shutdown completed ```
stijnb1234 commented 2020-07-27 06:05:49 +00:00 (Migrated from github.com)

As you can see with other Plugins, it's not possible to easily change that text. I shaded hikari into my jar and closed this issue.

As you can see with other Plugins, it's not possible to easily change that text. I shaded hikari into my jar and closed this issue.
Sign in to join this conversation.
No description provided.