mirror of
https://github.com/jlengrand/picocli.git
synced 2026-03-10 08:41:17 +00:00
[#1138] try to enable logging in annotation processor
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package picocli.codegen.annotation.processing;
|
||||
package picocli.codegen.util;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
class JulLogFormatter extends Formatter {
|
||||
public class JulLogFormatter extends Formatter {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.SSS");
|
||||
|
||||
@Override
|
||||
20
picocli-codegen/src/test/resources/logging.properties
Normal file
20
picocli-codegen/src/test/resources/logging.properties
Normal file
@@ -0,0 +1,20 @@
|
||||
# activate with system property java.util.logging.config.file
|
||||
# Example:
|
||||
# java.util.logging.config.file=C:\Users\remko\IdeaProjects\picocli3\picocli-codegen\src\test\resources\logging.properties
|
||||
|
||||
handlers= java.util.logging.FileHandler,java.util.logging.ConsoleHandler
|
||||
.level= ALL
|
||||
java.util.logging.ConsoleHandler.level = ALL
|
||||
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
|
||||
#java.util.logging.ConsoleHandler.formatter = picocli.codegen.util.JulLogFormatter
|
||||
picocli.annotation.processing.level = ALL
|
||||
|
||||
java.util.logging.FileHandler.pattern = %h/picocli-codegen%u.log
|
||||
java.util.logging.FileHandler.limit = 50000
|
||||
java.util.logging.FileHandler.count = 1
|
||||
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
|
||||
#java.util.logging.FileHandler.formatter = picocli.codegen.util.JulLogFormatter
|
||||
|
||||
com.sun=WARN
|
||||
javax.management=WARN
|
||||
picocli.annotation.processing=FINEST
|
||||
Reference in New Issue
Block a user