Code example for LogRecord

Methods: getLevelgetLoggerNamegetMessagegetMillisgetThrown

0
		this.appendNewLine = appendNewLine;
	} 
 
	@Override 
	public String format(final LogRecord record) {
		final StringBuilder result = new StringBuilder().append("[").append(record.getLevel().getName()).append("] ").
				append(new Date(record.getMillis())).append(": ").append(record.getLoggerName()).append(": ").
				append(record.getMessage()).append(StringUtil.throwableToString(record.getThrown()));
		if (appendNewLine) {
			result.append(LogFormatter.LINE_SEPARATOR);
		} 
		return result.toString();
	} 
 
	@Override 
	public String formatMessage(final LogRecord record) {
		return String.format(record.getMessage());
	} 
 
	public String formatTimestamp(final LogRecord record) {
Stop searching for code, let great code find you!  Add Codota to your java IDE