PageRenderTime 31ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/apache-log4j/contribs/ThomasFenner/configfile_example.txt

https://bitbucket.org/arkban/somersault
Plain Text | 52 lines | 38 code | 14 blank | 0 comment | 0 complexity | eef131e06a3112f63ddebf3a2223e1bb MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # Here is a Configuration-file example, which can be used with the PropertyConfigurator :
  16. # Declare a appender variable named JDBC
  17. log4j.rootCategory=JDBC
  18. # JDBC is a class of JDBCAppender, which writes messages into a database
  19. log4j.appender.JDBC=JDBCAppender
  20. # 1. Database-options to connect to the database
  21. log4j.appender.JDBC.url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=LENZI)(Port=1521))(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=LENZI)(Port=1526)))(CONNECT_DATA=(SID=LENZI)))
  22. log4j.appender.JDBC.username=mex_pr_dev60
  23. log4j.appender.JDBC.password=mex_pr_dev60
  24. # 2. Connector-option to specify your own JDBCConnectionHandler
  25. #log4j.appender.JDBC.connector=MyConnectionHandler
  26. # 3. SQL-option to specify a static sql-statement which will be performed with every occuring message-event
  27. #log4j.appender.JDBC.sql=INSERT INTO LOGTEST (id, msg, created_on, created_by) VALUES (1, @MSG@, sysdate, 'me')
  28. # 4. Table-option to specify one table contained by the database
  29. log4j.appender.JDBC.table=logtest
  30. # 5. Columns-option to describe the important columns of the table (Not nullable columns are mandatory to describe!)
  31. log4j.appender.JDBC.columns=id_seq~EMPTY id~ID~MyIDHandler msg~MSG created_on~TIMESTAMP created_by~STATIC~Thomas Fenner (t.fenner@klopotek.de)
  32. # 6. Layout-options to define the layout of the messages (optional)
  33. #log4j.appender.JDBC.layout=org.apache.log4j.PatternLayout
  34. #log4j.appender.JDBC.layout.ConversionPattern=%m
  35. # 7. Buffer-option to define the size of the message-event-buffer (optional)
  36. #log4j.appender.JDBC.buffer=1
  37. # 8. Commit-option to define a auto-commitment (optional)
  38. #log4j.appender.JDBC.commit=Y