类 LogMessage
java.lang.Object
cn.taketoday.logging.LogMessage
- 所有已实现的接口:
CharSequence
A simple log message type for use with Commons Logging, allowing
for convenient lazy resolution of a given
Supplier instance
(typically bound to a Java 8 lambda expression) or a printf-style
format string (MessageFormatter.format(java.lang.String, java.lang.Object)) in its toString().- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明charcharAt(int index) static LogMessageBuild a lazily formatted message from the given format string and argument.static LogMessageBuild a lazily formatted message from the given format string and varargs.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessagefrom(Supplier<? extends CharSequence> supplier) Build a lazily resolving message from the given supplier.intlength()subSequence(int start, int end) toString()This will be called by the logging provider, potentially once per log target (therefore locally caching the result here).从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 java.lang.CharSequence
chars, codePoints, isEmpty
-
构造器详细资料
-
LogMessage
public LogMessage()
-
-
方法详细资料
-
length
public int length()- 指定者:
length在接口中CharSequence
-
charAt
public char charAt(int index) - 指定者:
charAt在接口中CharSequence
-
subSequence
- 指定者:
subSequence在接口中CharSequence
-
toString
This will be called by the logging provider, potentially once per log target (therefore locally caching the result here).- 指定者:
toString在接口中CharSequence- 覆盖:
toString在类中Object
-
from
Build a lazily resolving message from the given supplier.- 参数:
supplier- the supplier (typically bound to a Java 8 lambda expression)- 另请参阅:
-
format
Build a lazily formatted message from the given format string and argument.- 参数:
format- the format string (followingMessageFormatter.format(String, Object[])rules)arg1- the argument- 另请参阅:
-
format
Build a lazily formatted message from the given format string and arguments.- 参数:
format- the format string (followingMessageFormatter.format(String, Object[])rules)arg1- the first argumentarg2- the second argument- 另请参阅:
-
format
Build a lazily formatted message from the given format string and arguments.- 参数:
format- the format string (followingMessageFormatter.format(String, Object[])rules)arg1- the first argumentarg2- the second argumentarg3- the third argument- 另请参阅:
-
format
Build a lazily formatted message from the given format string and arguments.- 参数:
format- the format string (followingMessageFormatter.format(String, Object[])rules)arg1- the first argumentarg2- the second argumentarg3- the third argumentarg4- the fourth argument- 另请参阅:
-
format
Build a lazily formatted message from the given format string and varargs.- 参数:
format- the format string (followingMessageFormatter.format(String, Object[])rules)args- the varargs array (costly, prefer individual arguments)- 另请参阅:
-