Logging the appliication in specified file

Hi all,

I want to log my application queries and some informative data into specified files. Is there any way to do this in yii?

I would like to have different files for different modules and in the file I can log sql queries, debug msg etc.

Thank you!

Please read here:

http://www.yiiframework.com/doc/guide/topics.logging