Our plugin uses log4php which allow allow us to log quite easily in a specific plugin subfolder : my-plugin/logs/nameofmylogfile-dd-mm-yyyy.log
Each day a new log file is created.
The problem is that when updating plugin, the logs directory is replaced with a new empty one, and we lose all previous log files, which can be very usefull.
How can we manage this ? Should we log in another wp directory ? Which one ?
Thanks a lot!
]]>You should probably name the directory something plugin-specific since it’s possible a “logs” directory was created by another plugin.
]]>