This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum AppHubFeature { | |
LOGISTIC_UNIT_UPDATE("Logistic Unit Update", FeatureConfig.LOGISTIC_UNIT_UPDATE), | |
ORDER_STATUS_UPDATE("Order Status Update", FeatureConfig.ORDER_STATUS_UPDATE), | |
STOCK_ADJUSTMENT("Stock Adjustment", FeatureConfig.STOCK_ADJUSTMENT); | |
public static class FeatureConfig { | |
public static final String LOGISTIC_UNIT_UPDATE = "app-hub.feature.logistic-unit-update"; | |
public static final String ORDER_STATUS_UPDATE = "app-hub.feature.order-line-status-update"; | |
public static final String STOCK_ADJUSTMENT = "app-hub.feature.stock-adjustment"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableConfigurationProperties(CommonTags.class) | |
public class HubMetricsConfiguration { | |
@Bean | |
public MeterRegistryCustomizer<MeterRegistry> meterRegistryCustomizer( CommonTags tags ) { | |
return registry -> registry.config() | |
.commonTags("applicationInstance", tags.getInstanceId(), | |
"applicationName", tags.getApplicationName(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<Configuration packages="logging.log4j.custom.plugins" name="SOME NAME"> | |
<Appenders> | |
<Console name="CONSOLE" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{MM-dd-yyyy HH:mm:ss,SSS} [%t] %custLayConv %msg%n"/> | |
</Console> | |
<RollingRandomAccessFile name="example" fileName="${sys:tbx.log.path}example.log" filePattern="${sys:tbx.log.path}example.log.%i" append="true" immediateFlush="true" bufferSize="262144"> | |
<NewCustLayout pattern="%d{MM-dd-yyyy HH:mm:ss,SSS} - %msg%n"/> | |
<Policies> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Plugin(name = "NewCustLayout", category = Node.CATEGORY, elementType = Layout.ELEMENT_TYPE, printObject = true) | |
public class NewCustLayout extends AbstractStringLayout | |
{ | |
protected NewCustLayout( Charset charset ) | |
{ | |
super( charset ); | |
} | |
@Override public String toSerializable( LogEvent event ) | |
{ |