"Fossies" - the Fresh Open Source Software Archive

Member "apache-log4j-2.12.4-src/log4j-core/src/test/resources/log4j-routing.json" (20 Dec 2021, 1956 Bytes) of package /linux/misc/apache-log4j-2.12.4-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "log4j-routing.json": 2.17.1_vs_2.17.2-rc1.

    1 /*
    2  * Licensed to the Apache Software Foundation (ASF) under one or more
    3  * contributor license agreements. See the NOTICE file distributed with
    4  * this work for additional information regarding copyright ownership.
    5  * The ASF licenses this file to You under the Apache license, Version 2.0
    6  * (the "License"); you may not use this file except in compliance with
    7  * the License. You may obtain a copy of the License at
    8  *
    9  *      http://www.apache.org/licenses/LICENSE-2.0
   10  *
   11  * Unless required by applicable law or agreed to in writing, software
   12  * distributed under the License is distributed on an "AS IS" BASIS,
   13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14  * See the license for the specific language governing permissions and
   15  * limitations under the license.
   16  */
   17 { "configuration": { "status": "error", "name": "RoutingTest",
   18     "ThresholdFilter": { "level": "debug" },
   19     "appenders": {
   20       "Console": { "name": "STDOUT",
   21         "PatternLayout": { "pattern": "%m%n" }
   22       },
   23       "List": { "name": "List",
   24         "ThresholdFilter": { "level": "debug" }
   25       },
   26       "Routing": { "name": "Routing",
   27         "Routes": { "pattern": "$${sd:type}",
   28           "Route": [
   29             {
   30               "RollingFile": {
   31                 "name": "Rolling-${sd:type}", "fileName": "target/rolling1/rollingtest-${sd:type}.log",
   32                 "filePattern": "target/rolling1/test1-${sd:type}.%i.log.gz",
   33                 "PatternLayout": {"pattern": "%d %p %C{1.} [%t] %m%n"},
   34                 "SizeBasedTriggeringPolicy": { "size": "500" }
   35               }
   36             },
   37             { "ref": "STDOUT", "key": "Audit"},
   38             { "ref": "List", "key": "Service"}
   39           ]
   40         }
   41       }
   42     },
   43     "loggers": {
   44       "logger": { "name": "EventLogger", "level": "info", "additivity": "false", "AppenderRef": { "ref": "Routing" }},
   45       "root": { "level": "error", "AppenderRef": { "ref": "STDOUT" }}
   46     }
   47   }
   48 }