<commit_before>/**
 * Copyright 2011-2016 Asakusa Framework Team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.asakusafw.operator.util;

import java.util.Objects;
import java.util.logging.Level;

/**
 * A wrapper of logger.
 * @since 0.9.0
 */
public final class Logger {

    static final String PLACEHOLDER = "{}"; //$NON-NLS-1$

    private final java.util.logging.Logger entity;

    private Logger(java.util.logging.Logger entity) {
        this.entity = entity;
    }

    /**
     * Returns a logger for the given context class.
     * @param context the context class
     * @return the logger for the class
     */
    public static Logger get(Class<?> context) {
        Objects.requireNonNull(context);
        return new Logger(java.util.logging.Logger.getLogger(context.getName()));
    }

    /**
     * Returns whether or not TRACE level messages are enabled.
     * @return {@code true} if TRACE level messages are enabled, otherwise {@code false}
     */
    public boolean isTraceEnabled() {
        return isEnabled(Level.FINER);
    }
<commit_msg>Add parent logger named `com.asakusafw.operator`.<commit_after>/**
 * Copyright 2011-2016 Asakusa Framework Team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.asakusafw.operator.util;

import java.util.Objects;
import java.util.logging.Level;

/**
 * A wrapper of logger.
 * @since 0.9.0
 */
public final class Logger {

    /**
     * The parent logger name.
     */
    public static final String NAME_PARENT_LOGGER = "com.asakusafw.operator"; //$NON-NLS-1$

    static {
        java.util.logging.Logger.getLogger(NAME_PARENT_LOGGER);
    }

    static final String PLACEHOLDER = "{}"; //$NON-NLS-1$

    private final java.util.logging.Logger entity;

    private Logger(java.util.logging.Logger entity) {
        this.entity = entity;
    }

    /**
     * Returns a logger for the given context class.
     * @param context the context class
     * @return the logger for the class
     */
    public static Logger get(Class<?> context) {
        Objects.requireNonNull(context);
        return new Logger(java.util.logging.Logger.getLogger(context.getName()));
    }

    /**
     * Returns whether or not TRACE level messages are enabled.
     * @return {@code true} if TRACE level messages are enabled, otherwise {@code false}
     */
    public boolean isTraceEnabled() {
        return isEnabled(Level.FINER);
    }

{'fraction_non_alphanumeric': 0.09878331402085748, 'fraction_numerical': 0.009559675550405562, 'mean_word_length': 3.0058004640371228, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4740812', 'n_tokens_mistral': 976, 'n_tokens_neox': 944, 'n_words': 353}