mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 20:57:23 +08:00
refactor(log): 默认启用日志
This commit is contained in:
@@ -30,6 +30,6 @@ import java.lang.annotation.*;
|
|||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target({ElementType.TYPE, ElementType.METHOD})
|
@Target({ElementType.TYPE, ElementType.METHOD})
|
||||||
@Documented
|
@Documented
|
||||||
@ConditionalOnProperty(prefix = PropertiesConstants.LOG, name = PropertiesConstants.ENABLED, havingValue = "true")
|
@ConditionalOnProperty(prefix = PropertiesConstants.LOG, name = PropertiesConstants.ENABLED, havingValue = "true", matchIfMissing = true)
|
||||||
public @interface ConditionalOnEnabledLog {
|
public @interface ConditionalOnEnabledLog {
|
||||||
}
|
}
|
@@ -35,7 +35,7 @@ public class LogProperties {
|
|||||||
/**
|
/**
|
||||||
* 是否启用日志
|
* 是否启用日志
|
||||||
*/
|
*/
|
||||||
private boolean enabled = false;
|
private boolean enabled = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
|
* 是否打印日志,开启后可打印访问日志(类似于 Nginx access log)
|
||||||
|
Reference in New Issue
Block a user