类 LogMessage
java.lang.Object
cn.taketoday.logging.LogMessage
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, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static final classprivate static final classprivate static final classprivate static final classprivate static final classprivate static final class -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) abstract Stringstatic 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.toString()This will be called by the logging provider, potentially once per log target (therefore locally caching the result here).
-
字段详细资料
-
result
-
-
构造器详细资料
-
LogMessage
public LogMessage()
-
-
方法详细资料
-
toString
This will be called by the logging provider, potentially once per log target (therefore locally caching the result here). -
buildString
-
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)- 另请参阅:
-