json logging throwing an error

206 views
Skip to first unread message

Michael

unread,
May 6, 2022, 9:01:42 AM5/6/22
to dropwizard-user
Hi
I am getting could not resolve type id 'access-json' as a subtype of `io.dropwizard.logging.layout.DiscoverableLayoutFactory`

Log format below:

requestLog:
appenders:
- type: file
layout:
type: access-json
timestampFormat: "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
currentLogFilename: request.logz
archivedLogFilenamePattern: request-%d{yyyy-MM-dd}-%i.logz
archivedFileCount: 10
timeZone: UTC
maxFileSize: 10MB

I have added 
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-json-logging</artifactId>
<version>${dropwizard.version}</version>
</dependency>

Thanks

Michael

unread,
May 6, 2022, 9:08:26 AM5/6/22
to dropwizard-user
ok bumped dw version and its working
Reply all
Reply to author
Forward
0 new messages