CodeIgniter Forums

Full Version: Is possible to create logs in another file and folder?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I want to create logs in different folders with different names. Is it possible? (I'm using CI4 system Logger)

For example:

/logs
    /app
       applog-date.log
       applog-date.log
    /other
       otherlog-date.log
       otherlog-date.log

Thank you
(02-22-2021, 11:42 AM)AngelRodriguez Wrote: [ -> ]Hi,

I want to create logs in different folders with different names. Is it possible? (I'm using CI4 system Logger)

For example:

/logs
    /app
       applog-date.log
       applog-date.log
    /other
       otherlog-date.log
       otherlog-date.log

Thank you

ci4  already had intergrate logger in write folder see there
It seems it is possible if you create another Logger instance for another log path by yourself.
(02-22-2021, 04:40 PM)kenjis Wrote: [ -> ]It seems it is possible if you create another Logger instance for another log path by yourself.

Im using 4.0.4 and is not possible in this version change the path. I need to update to 4.1.1 and it works Big Grin

thank you