Skip to content

Commit

Permalink
✨ 依赖兼容处理
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Dec 23, 2024
1 parent c6031b0 commit 6341e43
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ private Loki4jEncoder getFormat(LoggerContext context,
labelCfg.setKeyValueSeparator(properties.getFormatLabelKeyValueSeparator());
labelCfg.setNopex(properties.isFormatLabelNoPex());
loki4jEncoder.setLabel(labelCfg);
// message config
AbstractLoki4jEncoder.MessageCfg messageCfg = new AbstractLoki4jEncoder.MessageCfg();
String formatMessagePattern = properties.getFormatMessagePattern();
if (StringUtil.isNotBlank(formatMessagePattern)) {
messageCfg.setPattern(formatMessagePattern);
}
loki4jEncoder.setMessage(messageCfg);
// 其他配置
loki4jEncoder.setStaticLabels(properties.isFormatStaticLabels());
loki4jEncoder.setSortByTime(properties.isFormatSortByTime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ public static class Loki {
*/
private String formatLabelKeyValueSeparator = "=";
private boolean formatLabelNoPex = true;
/**
* 消息体格式,默认为: l=%level c=%logger{20} t=%thread | %msg %ex
*/
private String formatMessagePattern;
private boolean formatStaticLabels = false;
private boolean formatSortByTime = false;
}
Expand Down

0 comments on commit 6341e43

Please sign in to comment.