Yii Framework Forum: Log Files - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Log Files Rate Topic: -----

#1 User is offline   coolPhp 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 15-December 10

Posted 06 March 2013 - 04:55 AM

Hi All

Quick question.

I do not really understand the Yii logs

Want I what to do is have a different log file for each action.

so
controller product
action save
would log in the file productSaveLog.log

Controller product
action update
Would log in the file productUpdateLog.log

Controller client
action delete
would log in the file clientDeleteLog.log

Database sqlstatments
would log into ModelNameLog.log


etc etc.

each month a new log file would start.

Any ideas how I would do this.

I do not want to put these logs in the database.
But I would like to know how to log into the database too for when I need too.

Thanks
0

#2 User is offline   kokomo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 289
  • Joined: 23-July 10

Posted 06 March 2013 - 07:39 AM

Write your own LogRoute class and use it in your configuration.

I found the Real Time Logging wiki where you can get an idea how to customize a logger.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users