mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Update formatter with month and date
This commit is contained in:
parent
15234e4630
commit
459a3fb0a1
1 changed files with 3 additions and 1 deletions
|
@ -11,14 +11,16 @@ import java.util.logging.LogRecord;
|
|||
*/
|
||||
public class LogFormatter extends Formatter {
|
||||
|
||||
private final SimpleDateFormat date = new SimpleDateFormat("HH:mm:ss");
|
||||
private final SimpleDateFormat date = new SimpleDateFormat("MMM-dd|HH:mm:ss");
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
Throwable ex = record.getThrown();
|
||||
|
||||
builder.append("(");
|
||||
builder.append(date.format(record.getMillis()));
|
||||
builder.append(")");
|
||||
builder.append(" [");
|
||||
builder.append(record.getLevel().getLocalizedName().toUpperCase());
|
||||
builder.append("] ");
|
||||
|
|
Loading…
Reference in a new issue