Class LogConf
-
- All Implemented Interfaces:
public class LogConf- Since:
2022-09-01
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic final static StringKey$enablepublic Stringmappingpublic final static StringKey$mappingpublic Durationalivepublic final static StringKey$alivepublic DataSizelengthpublic final static StringKey$lengthpublic Stringdomainpublic final static StringKey$domainpublic Patternheaderpublic final static StringKey$headerpublic Map<String, String>ignorepublic final static StringKey$ignore
-
Constructor Summary
Constructors Constructor Description LogConf()
-
Method Summary
Modifier and Type Method Description StringgetMapping()UrlMapping, GET request, one `id` parameter only. voidsetMapping(String mapping)UrlMapping, GET request, one `id` parameter only. DurationgetAlive()default alive time. voidsetAlive(Duration alive)default alive time. DataSizegetLength()how many bytes before current log is output by default, do not record sensitive data in the log. voidsetLength(DataSize length)how many bytes before current log is output by default, do not record sensitive data in the log. StringgetDomain()host or ip for external access. voidsetDomain(String domain)host or ip for external access. PatterngetHeader()regexp of section header, e.g. voidsetHeader(Pattern header)regexp of section header, e.g. Map<String, String>getIgnore()ignored alert string in logs. voidsetIgnore(Map<String, String> ignore)ignored alert string in logs. booleanisEnable()whether to enable the alert file viewer booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetEnable(boolean enable)whether to enable the alert file viewer -
-
Method Detail
-
getMapping
String getMapping()
UrlMapping, GET request, one `id` parameter only.
-
setMapping
void setMapping(String mapping)
UrlMapping, GET request, one `id` parameter only.
-
getLength
DataSize getLength()
how many bytes before current log is output by default, do not record sensitive data in the log.
-
setLength
void setLength(DataSize length)
how many bytes before current log is output by default, do not record sensitive data in the log.
-
getHeader
Pattern getHeader()
regexp of section header, e.g. `2023-02-04T11:09:32.692+08:00`, `2024-07-23 01:31:59.063`
-
setHeader
void setHeader(Pattern header)
regexp of section header, e.g. `2023-02-04T11:09:32.692+08:00`, `2024-07-23 01:31:59.063`
-
isEnable
boolean isEnable()
whether to enable the alert file viewer
-
hashCode
int hashCode()
-
setEnable
void setEnable(boolean enable)
whether to enable the alert file viewer
-
-
-
-