<commit_before>package com.orientechnologies.common.log;

import java.util.logging.Formatter;
import java.util.logging.LogRecord;

public class OLogFormatter extends Formatter {

	@Override
	public String format(final LogRecord record) {
		return record.getMessage();
	}

}<commit_msg>Finally exceptions are logged in LOG console/file with a nice formatter (the OrientDB one)<commit_after>package com.orientechnologies.common.log;

import java.util.logging.Formatter;
import java.util.logging.LogRecord;

public class OLogFormatter extends Formatter {

	@Override
	public String format(final LogRecord record) {
		if (record.getThrown() == null)
			return record.getMessage();

		// FORMAT THE STACK TRACE
		final StringBuilder buffer = new StringBuilder();
		buffer.append(record.getMessage());
		for (StackTraceElement stackTraceElement : record.getThrown().getStackTrace()) {
			buffer.append("\n-> ");
			buffer.append(stackTraceElement.toString());
		}

		return buffer.toString();
	}
}
{'fraction_non_alphanumeric': 0.10696266397578204, 'fraction_numerical': 0.0, 'mean_word_length': 5.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6649311', 'n_tokens_mistral': 296, 'n_tokens_neox': 276, 'n_words': 72}