Hi Amiruddin,

I'm not sure what the requirement is that you are referring to related to 
logging activities, but perhaps this will shed some light on the issue for you. 
 

There are two kinds of logging defined in Mifos 
(http://www.mifos.org/knowledge/functional-specs/log-files), Change logs and 
Application logs.

Change logs are stored in the database and represent logs of which user 
performed which activity in Mifos.  The entry point into the use of change logs 
can be seen in AuditInterceptor.afterTransactionCompletion.  Essentially, after 
each transaction in Mifos, the objects that have been changed are logged into 
the database.  In Change logs, the id of the user completing the transaction in 
Mifos is stored.  Change logs provide a "paper trail" or "audit log" to be able 
to trace who did what, when in Mifos.

Application logs are used for operational purposes to monitor how Mifos is 
running and to diagnose problems which occur in a running Mifos instance.  
These logs are for IT staff or developers to use when troubleshooting.  

The issue that you bring up about the hard coded "Mifos" user relates to output 
going to the application logs.  From my inspection of the related files, the 
ability to log the current user as part of an application error message, was 
never implemented (instead only the hard coded stub that you mention was 
written).  

You can go ahead an enter this as an issue in the Mifos issue tracker, so that 
we can prioritize implementing the capability to log the current user or 
perhaps eliminate the hard coded user from the logs.  Essentially this is an 
issue of the error logs not containing as much information for debugging issues 
as they might (and containing incorrect information as it relates to the user 
name in the log).

Thanks for bringing this to our attention.

Cheers,
--Van

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Amiruddin Nagri
Sent: Mon 1/7/2008 12:44 AM
To: [email protected]
Subject: [Mifos-developer] Logging in MIFOS
 

Hi, 

I have some queries related to logging in MIFOS. 

I am working on the report module for MIFOS. There is a requirement related to 
logging user activities and username of the user using which he has logged in 
the application. 

I wrote a test for simple logging with just the user activity and not with who 
was doing it. I am getting the Logger through MifosLogManager.getLogger . It 
returns me a logger on which then I log the messages. 

When I had a look at what was being logged, It was logging the user logged in 
as "Mifos" which was coming from ApplicationConfig.getUserId(). There the given 
username is hard coded. 

I am not sure why this is in place in MIFOS, so apparently what is happening is 
all the log messages are being logged by the user as "Mifos". 

Is this a requirement (IMHO I dont think so) or a defect ? 

Any inputs/clarifications will be useful for me. I am attaching a document 
along with the concerned file in this mail. 

Regards, 
Amiruddin Nagri,
ThoughtWorks Technologies India Pvt. Ltd.,
2nd Floor, Tower C, Diamond District, Airport road,
Bangalore, 560008, KA
India 

Y! IM : [EMAIL PROTECTED]
GTalk : [EMAIL PROTECTED]


<<winmail.dat>>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

Reply via email to