-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathlog4j-example.properties
58 lines (49 loc) · 2.27 KB
/
log4j-example.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# for production, you should probably set the root to INFO
# and the pattern to %c instead of %l. (%l is slower.)
# output messages into a rolling log file as well as stdout
log4j.rootLogger=INFO,stdout
# stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p [%t]: %m%n
# Cassandra Appender & options
log4j.appender.CASS=com.datastax.logging.appender.CassandraAppender
#the following settings are the default values
#log4j.appender.CASS.hosts = localhost
#log4j.appender.CASS.port = 9042
#log4j.appender.CASS.keyspaceName = Logging
#log4j.appender.CASS.columnFamily = log_entries
#log4j.appender.CASS.replicationFactor = 1
#log4j.appender.CASS.consistencyLevelWrite = ONE
# Enable plaintext authentication (PasswordAuthenticator in cassandra.yaml)
#log4j.appender.CASS.username = "cassandra"
#log4j.appender.CASS.password = "cassandra"
# Enable SSL with default keystore and truststore.
#log4j.appender.CASS.sslOptions = { }
# Enable SSL with custom keystore and truststore
#log4j.appender.CASS.sslOptions = { \
# "ssl.keystore":"/usr/local/dse/resources/dse/conf/.keystore", \
# "ssl.keystore.password":"cassandra", \
# "ssl.truststore":"/usr/local/dse/resources/dse/conf/.keystore", \
# "ssl.truststore.password":"cassandra" \
#}
# Custom authProvider
#log4j.appender.CASS.authProviderOptions = { \
# "auth.class":"org.example.myAuthProvider" \
# "auth.options":"myOptionStringFormattedSomehow" \
#}