The thing is that i can't get Grizzly to log something to the console and haven't found any logfiles yet. Is grizzly using log4j or logging-api? Could anyone provide me with a logging.properties or something similar?
I'm starting the Server through a run config in eclipse specifiy
-Djava.util.logging.config.file=${project_loc}\src\main\resources\logging.properties
as an argument. The references file exists and contains
.handlers= java.util.logging.ConsoleHandler
.level= ALL
java.util.logging.FileHandler.pattern = logs/java%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
org.glassfish.level = FINEST
转自:https://stackoverflow.com/questions/21329733/grizzly-standalone-logging
本文探讨了Grizzly框架的日志配置问题,包括如何使用logging.properties文件来设置控制台和文件日志级别,以及如何在Eclipse中通过运行配置指定日志配置文件的位置。
1495

被折叠的 条评论
为什么被折叠?



