Is possible to create logs in another file and folder? |
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, ci4 already had intergrate logger in write folder see there
Enlightenment Is Freedom
It seems it is possible if you create another Logger instance for another log path by yourself.
Could you please describe exactly how you achieved this.
I am trying to group messages of a similar kind into a separate file. I can’t work out how to change log path at run time.
(03-04-2021, 06:05 AM)motownphilippe Wrote: Could you please describe exactly how you achieved this. PHP Code: use Config\Logger as LoggerConfig; |
Welcome Guest, Not a member yet? Register Sign In |