<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2012-2014 DuyHai DOAN
  ~
  ~  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.
  -->

<!DOCTYPE log4j:configuration PUBLIC
        "-//APACHE//DTD LOG4J 1.2//EN"
        "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
<log4j:configuration debug="false"
                     xmlns:log4j="http://jakarta.apache.org/log4j/">
    <!-- Appenders -->
    <appender name="ConsoleAppender"
              class="org.apache.log4j.ConsoleAppender">
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern"
                   value="%-5p [%d{ABSOLUTE}][%x] %c@:%M %m %n"/>
        </layout>
    </appender>

    <logger name="ACHILLES_DDL_SCRIPT">
        <level value="DEBUG"/>
    </logger>

    <logger name="ACHILLES_DML_STATEMENT">
        <level value="DEBUG"/>
    </logger>

    <logger name="info.archinnov.achilles">
        <level value="INFO"/>
    </logger>

    <logger name="org.apache.zeppelin.cassandra">
        <level value="DEBUG"/>
    </logger>

    <!-- lots of warning for embedded Cassandra, shut them up -->
    <logger name="org.apache.cassandra.cql3.QueryProcessor">
        <level value="OFF"/>
    </logger>
    <logger name="org.apache.cassandra.service.CassandraDaemon">
        <level value="OFF"/>
    </logger>
    <logger name="com.datastax.driver.core.ControlConnection">
        <level value="OFF"/>
    </logger>
    <logger name="org.apache.cassandra.db.Memtable">
        <level value="OFF"/>
    </logger>
    <logger name="org.apache.cassandra.utils.CLibrary">
        <level value="OFF"/>
    </logger>
    <logger name="com.datastax.driver.core.NettyUtil">
        <level value="OFF"/>
    </logger>

    <logger name="io.netty">
        <level value="OFF"/>
    </logger>


    <!-- ********************************************************* -->
    <!-- Root Loggers                                              -->
    <!-- ********************************************************* -->
    <root>
        <level value="WARN"/>
        <appender-ref ref="ConsoleAppender"/>
    </root>
</log4j:configuration>