Support custom LoggingTypes · Issue #2443 · docker-java/docker-java
Repository navigation
Support custom LoggingTypes #2443
New issue
New issue
Open
Open
Support custom LoggingTypes #2443
Description
@clairradiant's profile clairradiant opened on May 24, 2025My use case requires the use of a custom logging driver. Due to the representation of LoggingType as an enum:
docker-java/docker-java-api/src/main/java/com/github/dockerjava/api/model/LogConfig.java
Lines 66 to 80 in 20f0831
| public enum LoggingType { | |
| NONE ( "none" ), | |
| DEFAULT ( "json-file" ), | |
| LOCAL ( "local" ), | |
| ETWLOGS ( "etwlogs" ), | |
| JSON_FILE ( "json-file" ), | |
| SYSLOG ( "syslog" ), | |
| JOURNALD ( "journald" ), | |
| GELF ( "gelf" ), | |
| FLUENTD ( "fluentd" ), | |
| AWSLOGS ( "awslogs" ), | |
| DB ( "db" ), // Synology specific driver | |
| SPLUNK ( "splunk" ), | |
| GCPLOGS ( "gcplogs" ), | |
| LOKI ( "loki" ); |
this appears not possible using docker-java. This issue previously came up in #783 but was resolved by manually adding the log driver type in question as an element of the enum, which does not solve the issue in the more general case.