An open API service indexing awesome lists of open source software.

https://github.com/vijaycs85/log4php

Mirror of log4php Drupal extension
https://github.com/vijaycs85/log4php

Last synced: about 2 months ago
JSON representation

Mirror of log4php Drupal extension

Awesome Lists containing this project

README

        

Apache log4php Integration
==========================

Maintainers
-----------

Erik Webb (http://drupal.org/user/273404)

Features
--------

This module provides simple integration with the Apache log4php library.

WARNING
-------

If you plan to view your log messages in a browser interface please use the
LoggerRendererDrupalStandardObject renderer. Messages logged by other renderers are not passed through Drupal's
check_plain() function and thus represent a security vector when viewed in a browser.

Requirements
------------

This module requires the log4php library. This can be installed in one of two ways -

The preferred installation method is via PEAR -

pear channel-discover pear.apache.org/log4php
pear install log4php/Apache_log4php

To install the library using Drush Make, use the following snippet -

libraries[log4php][download][type] = "get"
libraries[log4php][download][url] = "http://www.gtlib.gatech.edu/pub/apache/logging/log4php/2.2.1/apache-log4php-2.2.1-src.tar.gz"
libraries[log4php][download][md5] = "79343108ab898821bcb8fd2fca711992"
libraries[log4php][download][subtree] = "src/main/php"
libraries[log4php][directory_name] = "log4php"

Alternatively the main code files can be installed via the Libraries module. Move the src/main/php directory to sites/all/libraries/log4php.

Installation
------------

After creating an XML configuration file, include it in your settings.php file -

The default log4php.xml file is a basic configuration to test functionality. This configuration only writes log entries to a file located in the temp directory (will only work on Linux/Unix/Mac for now).

Recommended modules
-------------------

Libraries (1.x only, for now)