← Winnitude! Search  ·  Reader Mode (745 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 9 LINKS

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, 2025

My 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.

Reacted by Max de Krieger and Elmer van Chastelet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions