You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ch...@apache.org on 2009/10/06 21:10:18 UTC
svn commit: r822434 - in /incubator/log4php/trunk/src/examples: php/
resources/
Author: chammers
Date: Tue Oct 6 19:10:17 2009
New Revision: 822434
URL: http://svn.apache.org/viewvc?rev=822434&view=rev
Log:
appender examples
Modified:
incubator/log4php/trunk/src/examples/php/appender_dailyfile.php
incubator/log4php/trunk/src/examples/resources/appender_console.properties
incubator/log4php/trunk/src/examples/resources/appender_dailyfile.properties
incubator/log4php/trunk/src/examples/resources/appender_echo.properties
incubator/log4php/trunk/src/examples/resources/appender_mailevent.properties
incubator/log4php/trunk/src/examples/resources/appender_null.properties
incubator/log4php/trunk/src/examples/resources/appender_php.properties
incubator/log4php/trunk/src/examples/resources/appender_socket.properties
incubator/log4php/trunk/src/examples/resources/appender_syslog.properties
Modified: incubator/log4php/trunk/src/examples/php/appender_dailyfile.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/php/appender_dailyfile.php?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/php/appender_dailyfile.php (original)
+++ incubator/log4php/trunk/src/examples/php/appender_dailyfile.php Tue Oct 6 19:10:17 2009
@@ -6,11 +6,3 @@
$logger = Logger::getRootLogger();
$logger->debug("Hello World!");
// END SNIPPET: doxia
-<?php
-// START SNIPPET: doxia
-require_once dirname(__FILE__).'/../../main/php/Logger.php';
-Logger::configure(dirname(__FILE__).'/../resources/appender_dailyfile.properties');
-
-$logger = Logger::getRootLogger();
-$logger->debug("Hello World!");
-// END SNIPPET: doxia
Modified: incubator/log4php/trunk/src/examples/resources/appender_console.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_console.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_console.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_console.properties Tue Oct 6 19:10:17 2009
@@ -1,20 +1,3 @@
-; console.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.console = LoggerAppenderConsole
log4php.appender.console.target = STDOUT
Modified: incubator/log4php/trunk/src/examples/resources/appender_dailyfile.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_dailyfile.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_dailyfile.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_dailyfile.properties Tue Oct 6 19:10:17 2009
@@ -1,44 +1,3 @@
-; dailyfile.properties
-;
-; 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.
-;
-; START SNIPPET: doxia
-log4php.appender.default = LoggerAppenderDailyFile
-log4php.appender.default.layout = LoggerLayoutTTCC
-log4php.appender.default.datePattern = Ymd
-log4php.appender.default.file = target/examples/daily_%s.log
-log4php.rootLogger = DEBUG, default
-; END SNIPPET: doxia
-; dailyfile.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderDailyFile
log4php.appender.default.layout = LoggerLayoutTTCC
Modified: incubator/log4php/trunk/src/examples/resources/appender_echo.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_echo.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_echo.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_echo.properties Tue Oct 6 19:10:17 2009
@@ -1,20 +1,3 @@
-; echo.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderEcho
log4php.appender.default.layout = LoggerLayoutTTCC
Modified: incubator/log4php/trunk/src/examples/resources/appender_mailevent.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_mailevent.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_mailevent.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_mailevent.properties Tue Oct 6 19:10:17 2009
@@ -1,20 +1,3 @@
-; mail.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.email = LoggerAppenderMail
log4php.appender.email.layout = LoggerLayoutTTCC
@@ -22,4 +5,4 @@
log4php.appender.email.to = root
log4php.appender.email.subject = Log4php test
log4php.rootLogger = FATAL, email
-; END SNIPPET: doxia
\ No newline at end of file
+; END SNIPPET: doxia
Modified: incubator/log4php/trunk/src/examples/resources/appender_null.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_null.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_null.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_null.properties Tue Oct 6 19:10:17 2009
@@ -1,21 +1,4 @@
-; syslog.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderNull
log4php.rootLogger = DEBUG, default
-; END SNIPPET: doxia
\ No newline at end of file
+; END SNIPPET: doxia
Modified: incubator/log4php/trunk/src/examples/resources/appender_php.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_php.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_php.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_php.properties Tue Oct 6 19:10:17 2009
@@ -1,20 +1,3 @@
-LoggerLayoutPattern; php.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderPhp
log4php.appender.default.layout = LoggerLayoutPattern
Modified: incubator/log4php/trunk/src/examples/resources/appender_socket.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_socket.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_socket.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_socket.properties Tue Oct 6 19:10:17 2009
@@ -1,20 +1,3 @@
-; syslog.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderSocket
log4php.appender.default.layout = LoggerLayoutSimple
Modified: incubator/log4php/trunk/src/examples/resources/appender_syslog.properties
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/examples/resources/appender_syslog.properties?rev=822434&r1=822433&r2=822434&view=diff
==============================================================================
--- incubator/log4php/trunk/src/examples/resources/appender_syslog.properties (original)
+++ incubator/log4php/trunk/src/examples/resources/appender_syslog.properties Tue Oct 6 19:10:17 2009
@@ -1,24 +1,7 @@
-; syslog.properties
-;
-; 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.
-;
; START SNIPPET: doxia
log4php.appender.default = LoggerAppenderSyslog
log4php.appender.default.layout = LoggerLayoutSimple
log4php.appender.default.ident = log4php-test
log4php.appender.default.facility = LOG_LOCAL0
log4php.rootLogger = DEBUG, default
-; END SNIPPET: doxia
\ No newline at end of file
+; END SNIPPET: doxia