<commit_before>import grails.util.BuildSettings
import grails.util.Environment

// See http://logback.qos.ch/manual/groovy.html for details on configuration
appender('STDOUT', ConsoleAppender) {
    encoder(PatternLayoutEncoder) {
        pattern = "%thread %level %logger - %msg%n"
    }
}

root(INFO, ['STDOUT'])

def targetDir = BuildSettings.TARGET_DIR
if (Environment.isDevelopmentMode() && targetDir) {
    appender("FULL_STACKTRACE", FileAppender) {
        file = "${targetDir}/stacktrace.log"
        append = true
        encoder(PatternLayoutEncoder) {
            pattern = "%level %logger - %msg%n"
        }
    }
    logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
    logger('org.springframework', WARN, ['STDOUT'], false)
    logger('org.grails.spring', WARN, ['STDOUT'], false)
    logger('org.hibernate', WARN, ['STDOUT'], false)
    logger('grails.plugins.jesque.GrailsWorkerImpl', DEBUG, ['STDOUT'], false)
}
<commit_msg>update logging<commit_after>import grails.util.BuildSettings
import grails.util.Environment

// See http://logback.qos.ch/manual/groovy.html for details on configuration
appender('STDOUT', ConsoleAppender) {
    encoder(PatternLayoutEncoder) {
        pattern = "%d{HH:mm:ss.SSS} %thread %level %logger - %msg%n"
    }
}

root(INFO, ['STDOUT'])

def targetDir = BuildSettings.TARGET_DIR
if (Environment.isDevelopmentMode() && targetDir) {
    appender("FULL_STACKTRACE", FileAppender) {
        file = "${targetDir}/stacktrace.log"
        append = true
        encoder(PatternLayoutEncoder) {
            pattern = "%level %logger - %msg%n"
        }
    }
    logger("StackTrace", ERROR, ['FULL_STACKTRACE'], false)
    logger('org.springframework', WARN, ['STDOUT'], false)
    logger('org.grails.spring', WARN, ['STDOUT'], false)
    logger('org.hibernate', WARN, ['STDOUT'], false)
    logger('grails.plugins.jesque', DEBUG, ['STDOUT'], false)
}

{'fraction_non_alphanumeric': 0.1551814834297738, 'fraction_numerical': 0.0, 'mean_word_length': 3.8894601542416454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5897759', 'n_tokens_mistral': 616, 'n_tokens_neox': 578, 'n_words': 116}