JLog Improvements

Locked
pasamio
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Thu Aug 18, 2005 9:27 am
Location: San Jose, CA, USA
Contact:

JLog Improvements

Post by pasamio » Tue Mar 25, 2008 1:50 pm

1. Introduction
With Joomla! 1.5, there is now the ability to do centralised logging that wasn't present without third party support in the earlier 1.0 series. However the 1.5 support only includes a single logging method to a text file.

2. Scope
Whilst logging to a text file is easy, it is not the most friendly format because it can be hard to parse this file within an extension (memory and time issues for large files), in some cases it is preferable to log to an external source or even to the database. The reason why one would want to log to the database is to provide the ability for easy searching within the system without having to handle large amounts of data.

3. Implementation
Include the development of a facility for JLog to natively handle more than one logging format than what is available. Ideally a database logging mechanism should be provided for easy use.

4. Impacts
This should be done in a way that is transparent to users of JLog. An additional option will appear to handle different logging engines.
Sam Moffatt
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: JLog Improvements

Post by AmyStephen » Tue Mar 25, 2008 9:04 pm

Optional core logging to a database table would be great.

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: JLog Improvements

Post by ircmaxell » Wed Mar 26, 2008 2:12 pm

I agree here... One thing we SHOULD add IMHO is a set of plugin events to JLog. So that I can create a plugin to send me an email any time someone tries to login to the admin account (for example)...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

pasamio
Joomla! Ace
Joomla! Ace
Posts: 1318
Joined: Thu Aug 18, 2005 9:27 am
Location: San Jose, CA, USA
Contact:

Re: JLog Improvements

Post by pasamio » Thu Mar 27, 2008 2:14 am

Actually you could write that plugin already with Joomla! 1.5 by using the User triggers that occur when a user logs in, check out the /plugins/user/joomla.php file to see what it does, all you'd have to do is write another user plugin that implements onLoginUser and handles mailing a user.
Sam Moffatt
Updater, Installer and Authentication Systems
JoomlaCode Backend Systems
Pie.

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1384
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: JLog Improvements

Post by Chris Davenport » Wed Apr 16, 2008 7:00 am

Sam, I'm glad you included this white paper. I remember the work you did on this ages ago and I was looking forward to seeing it implemented one day. For me the killer application of this facility is to be able to extend JLog with a standard *nix logger interface. It's really easy to implement and it would mean that log messages get sent to a background log process running on the same, or a different server, in real-time. It is then easy to write scripts that can monitor log entries as they come in and fire off alarms/emails/whatever as appropriate. A single, central, log server can provide this service for multiple Joomla! instances. 8)

Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/

User avatar
joomlacorner
Joomla! Explorer
Joomla! Explorer
Posts: 407
Joined: Thu Aug 18, 2005 2:29 am
Contact:

Re: JLog Improvements

Post by joomlacorner » Tue Feb 10, 2009 5:19 am

Sam,
this's Thailand's Law Computer Related Crime Act B.E 2550
http://www.etcommission.go.th/documents ... ficial.pdf

may be you can do it to compatible with this law.
รับพัฒนาระบบด้วย Joomla http://marvelic.co.th | ทีมพัฒนาภาษาไทย http://www.joomlacorner.com


Locked

Return to “Under Review - Archived”