Back to project page slf4android.
The source code is released under:
MIT License
If you think the Android project slf4android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.brightinventions.slf4android; /*w ww . j ava 2 s .co m*/ import java.text.SimpleDateFormat; import java.util.Locale; class DateValueSupplier implements LoggerPatternValueSupplier { private static ThreadLocal<SimpleDateFormat> dateFormat = new ThreadLocal<SimpleDateFormat>() { @Override protected SimpleDateFormat initialValue() { return new SimpleDateFormat("yyyy.MM.dd HH:mm:ss.SSS", Locale.US); } }; @Override public void append(LogRecord record, StringBuilder builder) { String formatted = dateFormat.get().format(record.getDate()); builder.append(formatted); } }