Use POLICY_LOGS env variable in logging.properties
[policy/engine.git] / packages / base / src / files / install / servers / console / conf / logging.properties
1 #
2 # Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
3 #
4 # Licensed to the Apache Software Foundation (ASF) under one or more
5 # contributor license agreements.  See the NOTICE file distributed with
6 # this work for additional information regarding copyright ownership.
7 # The ASF licenses this file to You under the Apache License, Version 2.0
8 # (the "License"); you may not use this file except in compliance with
9 # the License.  You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18
19 handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
20
21 .handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
22
23 ############################################################
24 # Handler specific properties.
25 # Describes specific configuration info for Handlers.
26 ############################################################
27
28 1catalina.org.apache.juli.AsyncFileHandler.level = FINE
29 1catalina.org.apache.juli.AsyncFileHandler.directory = ${{POLICY_LOGS}}/policy/console
30 1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
31
32 2localhost.org.apache.juli.AsyncFileHandler.level = FINE
33 2localhost.org.apache.juli.AsyncFileHandler.directory = ${{POLICY_LOGS}}/policy/console
34 2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
35
36 3manager.org.apache.juli.AsyncFileHandler.level = FINE
37 3manager.org.apache.juli.AsyncFileHandler.directory = ${{POLICY_LOGS}}/policy/console
38 3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
39
40 4host-manager.org.apache.juli.AsyncFileHandler.level = FINE
41 4host-manager.org.apache.juli.AsyncFileHandler.directory = ${{POLICY_LOGS}}/policy/console
42 4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
43
44 java.util.logging.ConsoleHandler.level = FINE
45 java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
46
47
48 ############################################################
49 # Facility specific properties.
50 # Provides extra control for each logger.
51 ############################################################
52
53 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.AsyncFileHandler
55
56 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
57 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.AsyncFileHandler
58
59 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
60 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.AsyncFileHandler
61
62 # For example, set the org.apache.catalina.util.LifecycleBase logger to log
63 # each component that extends LifecycleBase changing state:
64 #org.apache.catalina.util.LifecycleBase.level = FINE
65
66 # To see debug messages in TldLocationsCache, uncomment the following line:
67 #org.apache.jasper.compiler.TldLocationsCache.level = FINE
68