我正在注释我的函数@Loggable jcabi 注释。它记录的语句不完整,它会修剪该行并仅打印 .. 用于截断的数据。我希望打印整行。这可以用这个注释来完成吗?
@Loggable(Loggable.DEBUG)
public String load(URL url) {
return url.openConnection().getContent();
}
产生以下日志
[DEBUG] #load('http://www.google.com'): returned "<html ..." in 23ms
Log4j.properties
# Root logger option
log4j.rootLogger=INFO, file, CONSOLE
# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=swami-plugin.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=com.jcabi.log.MulticolorLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%color{%-5p}] %c: %m%n