public final class FlamingockLoggerFactory
extends java.lang.Object
All Flamingock loggers use "FK-" prefix with 20-character alignment for clean log output. This factory ensures consistent branding and visual alignment across all components.
Compatible with GraalVM native image compilation - uses only safe string operations and Class.getSimpleName() to avoid reflection issues.
// String-based logger (preferred for core components)
private static final Logger logger = FlamingockLoggerFactory.getLogger("ChangeExecution");
// Class-based logger (useful for community/platform components)
private static final Logger logger = FlamingockLoggerFactory.getLogger(MyClass.class);
FK-ChangeExecution - Starting change execution [change=create-user-table] FK-Lock - Process lock acquired successfully [duration=120ms] FK-StageExecutor - Stage execution completed [duration=1.2s tasks=3]
| Modifier and Type | Method and Description |
|---|---|
static org.slf4j.Logger |
getLogger(java.lang.Class<?> clazz)
Create logger with class type.
|
static org.slf4j.Logger |
getLogger(java.lang.String name)
Create logger with component name.
|
public static org.slf4j.Logger getLogger(java.lang.String name)
The name will be prefixed with "FK-" and padded to exactly 20 characters for consistent alignment in log output.
name - the component name (e.g., "ChangeExecution", "Lock", "StageExecutor")public static org.slf4j.Logger getLogger(java.lang.Class<?> clazz)
Uses the class simple name (Class.getSimpleName()) which is GraalVM native image safe. The name will be prefixed with "FK-" and padded to exactly 20 characters.
clazz - the class (simple name will be extracted and used)