public final class LoggerFactory extends Object
Logger instances.
By default, logging goes through SLF4J. Users can override the backend programmatically before creating any SDK client:
LoggerFactory.setDefault(myCustomFactory);
WorkspaceClient ws = new WorkspaceClient();
Implement ILoggerFactory to provide a fully custom logging backend.
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger(Class<?> type)
Returns a logger for the given class, using the current default factory.
|
static Logger |
getLogger(String name)
Returns a logger with the given name, using the current default factory.
|
static void |
setDefault(ILoggerFactory factory)
Overrides the logging backend used by the SDK.
|
public static Logger getLogger(Class<?> type)
public static Logger getLogger(String name)
public static void setDefault(ILoggerFactory factory)
Must be called before creating any SDK client or calling getLogger(java.lang.Class<?>). Loggers already
obtained will not be affected by subsequent calls.
Copyright © 2026. All rights reserved.