Separate logging for JPMS module/layer
forax at univ-mlv.fr
Tue Oct 2 22:12:48 UTC 2018
You can use the StackWalker
----- Mail original -----
> De: "Alex Sviridov" <ooo_saturn7 at mail.ru>
> À: "jigsaw-dev" <jigsaw-dev at openjdk.java.net>
> Envoyé: Mardi 2 Octobre 2018 23:54:48
> Objet: Separate logging for JPMS module/layer
> Hi all,
> Could anyone say how the following problem can be solved. I want to create
> log file for every JPMS module/layer. The problem is that many
> use LoggerFactory.getLogger(String className) so in getLogger I have only
> the name of the class as String, so I can't get module and layer.
> If I had not String className, but Class klass then the problem would be easily
> As I understand I can't load class by name because it would require all modules
> their packages to logging framework that has no sense.
> Are there any solutions for such problem?
> Alex Sviridov
More information about the jigsaw-dev