breaking: change app name and log path#934
Conversation
|
I think we can merge breaking changes into a v7.0 branch. |
|
Since the path In the name of log file We can better organise the log files by pushing them in a subdirectory by date. The log file can have a format |
Agree. All PR targetting project "CP Editor 7.0" should go there. |
👍
I doubt whether this would be helpful 🤔 There aren't many log files so this can't significantly make it easier to navigate to a log file by date, but it does make it harder to navigate between log files. Neither of these two actions (find log file by date / navigate between log files) happens very often, though. |
|
And it's harder to keep 50 log files if they are in different folders. Then we can only keep log files in several days. However, if they are in the same folder, it is still easy to keep log files in several days. |
I agree. We can keep it in the same top level directory but I still believe instead of deleting log files when it reaches 50, we should keep last 7 days of logs or 14 days. If someone use app say 5 days a week, we end up with logs as old as 2 months. At the same time if we are developing cpeditor, in just a few days we can create 50 files. So it will be better if everytime we create new log file we delete all logs older than 7 or 14 days. |
Not in the current code. If you wish you can do the changes and link that issue as well. |
I'm afraid I'm too poor to do that 😹 |
Ok. Is changing name inside If not, undo that change and change title to |
|
I think it does require it 🤔 |
If I don't change name, the log path will be |
|
I think the name can be changed in the future. Because we have to change the name in v7. |
|
Yes, maybe ignoring that is a good choice. That should be fixed in changing name pr. |
|
As this branch refers the app name by qt, it's ok to just merge this. There won't be a patch for this neither. |
|
I don't see any problem to change the app name here. And I don't understand your conversation very well 🤔 What's the problem here? Are you discussing whether #925 should be closed by this or something else? |
I am in favour of changing name here. OP say he cannot fix 925 in this PR but this PR requires that app name (Qt app name) should be changed. App name is used to find the cache directory. |
|
What we were discussing is that since this PR requires app name to be changed, instead of partially changing it, we can either
I think the change of app name should be done first in the v7.0 so that all following PR are created against new app name. |
|
@neko-para was asking what changes should done to fix #925? |
It means PR A should be merged before PR B can be merged. Since PR B requires some changes that are in PR A. If PR A is not opened, consider it's issue to be fixed instead. |
@neko-para you should link that issue to the PR. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |

Description
Change the log from
/tmp/cpeditorLogFilesto~/.cache/cpeditor/log.Use QStandardPaths::CacheLocation.
Also change the appname from CP Editor to cpeditor.
Related Issues / Pull Requests
close #926
Motivation and Context
How Has This Been Tested?
Archlinux.
Screenshots (if appropriate)
Checklist
oldattribute is updated or it is resolved in SettingsUpdater.tr()orQCoreApplication::translate().Additional text