dropwizard

Dropwizard doesn't log custom loggers to file

独自空忆成欢 提交于 2019-11-26 11:24:09
问题 I have a dropwizard app, where I configured logger appenders to file as follows: logging: level: INFO loggers: \"mylogger\": INFO \"com.path.to.class\": INFO appenders: - type: file currentLogFilename: .logs/mylogs.log archivedLogFilenamePattern: .logs/archive.%d.log.gz archivedFileCount: 14 And, created logger in my app: import org.slf4j.Logger; import org.slf4j.LoggerFactory; private final Logger OpLogger = LoggerFactory.getLogger(\"mylogger\"); (and) private final Logger ClassLogger =

Jersey 2.x Custom Injection Annotation With Attributes

非 Y 不嫁゛ 提交于 2019-11-26 07:39:29
问题 I am in the process of migrating from DropWizard 0.7.1 to 0.8.1. This includes migrating from Jersey 1.x to 2.x. In my implementation that uses Jersey 1.18.1, I had a MyProvider (changed all class names for simplicity\'s sake) that implements InjectableProvider . This class would create MyInjectable objects, containing the custom injection annotation, MyToken . MyToken contains various attributes that are passed on and read by MyInjectable . Lastly, in the Application class I register a new