yen
09/02/2019, 12:46 PMribesg
09/02/2019, 12:49 PMprintln
:trollface:Uriel Salischiker
09/02/2019, 12:59 PMinline val <reified T> T.log: Logger
get() = LoggerFactory.getLogger(T::class.java)
rodolpho.couto
09/02/2019, 1:02 PMUriel Salischiker
09/02/2019, 1:03 PMkarelpeeters
09/02/2019, 4:34 PMMike
09/03/2019, 12:20 PMgetLogger(String)
interface just as easily, and avoid any 'reflection'.
Have you found something else that concerns you?
And there's no reason you HAVE to create a logger in every class. As I say, it creates a logger with that name, and shows up better in the logs, but isn't mandatory. You could use a global logger for your application.DALDEI
09/08/2019, 11:35 PMMike
09/09/2019, 1:43 AMDALDEI
09/09/2019, 5:48 AMMike
09/09/2019, 12:19 PM