client
client copied to clipboard
Improve log message format
Helps making the log messages more readable, both for humans and machines.
Example log:
[2022/02/23 12:47:30,120] <gui.folder> INFO: Saved folder "1" to settings, status QSettings::NoError
[2022/02/23 12:47:30,120] <gui.folder.manager> INFO: Schedule folder "1" to sync!
[2022/02/23 12:47:30,120] <gui.folder.manager> INFO: Folder is not ready to sync, not scheduled!
[2022/02/23 12:47:30,121] <gui.application> INFO: Sync state changed for folder "https://localhost:8443/remote.php/webdav/" : "Not yet Started"
[2022/02/23 12:47:30,121] <sync.database.sql> DEBUG (OCC::SqlQuery::bindValue): SQL bind 1 3
[2022/02/23 12:47:30,121] <sync.database.sql> DEBUG (OCC::SqlQuery::exec): SQL exec "SELECT path FROM selectivesync WHERE type=?1"
[2022/02/23 12:47:30,121] <sync.clientproxy> INFO: Set proxy configuration to use system configuration
Results for GUI-tests https://drone.owncloud.com/owncloud/client/10866/5/1
:boom: The GUI tests failed.
GUI Logs: (https://cache.owncloud.com/public/owncloud/client/10866/guiReportUpload/index.html)
Server Logs: ((https://cache.owncloud.com/public/owncloud/client/10866/guiReportUpload/serverlog.log)
I've included the proposed changes now.
I think that a more structured, table-like format would be even easier to read, but cannot be implemented just using the message format.
Results for GUI-tests https://drone.owncloud.com/owncloud/client/10878/5/1
:boom: The GUI tests failed.
GUI Logs: (https://cache.owncloud.com/public/owncloud/client/10878/guiReportUpload/index.html)
Server Logs: ((https://cache.owncloud.com/public/owncloud/client/10878/guiReportUpload/serverlog.log)
Sounds creepy, but a little documentation about what the format now is (imaging you would want to write a log viewer...) would be nice.







