[enhancement] Add microseconds to unity8.log prefix

Bug #1626344 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Won't Fix
Undecided
Unassigned
unity8 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Please add microseconds to the logging prefix used in unity8.log (and more?). They are often useful for debugging and would make things look more consistent with Mir. For example, I just saw this in a user's bug report:

[2016-09-22:02:30:46.345] qtmir.mir: SessionListener::SessionListener - this= SessionListener(0xf17ece3c)
[2016-09-22:02:30:46.345] qtmir.mir: PromptSessionListener::PromptSessionListener - this= PromptSessionListener(0xf17ecffc)
[2016-09-22 02:30:46.345807] mirserver: Using nested cursor
[2016-09-22:02:30:46.346] qtmir.mir: MirWindowManagerImpl::MirWindowManagerImpl
[2016-09-22 02:30:46.346617] mirserver: Initial display configuration:
[2016-09-22 02:30:46.349255] mirserver: 0.1: LVDS 10,0" 135x216mm
[2016-09-22 02:30:46.349405] mirserver: Current mode 1200x1920 56,90Hz
[2016-09-22 02:30:46.349470] mirserver: Preferred mode 1200x1920 56,90Hz
[2016-09-22 02:30:46.349526] mirserver: Logical position +0+0
[2016-09-22 02:30:46.349588] mirserver: 0.2: unused DisplayPort
[2016-09-22 02:30:46.349644] mirserver: 0.3: unused (null)
[2016-09-22 02:30:46.350821] mirserver: Mir version 0.24.0
[2016-09-22:02:30:46.350] qtmir.screens: QtCompositor::start
[2016-09-22:02:30:46.413] qtmir.screens: ScreensModel::update

We could certainly make the date/time formats the same...

tags: added: unity8-desktop
description: updated
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

Unfortunately, I think this isn't possible with Qt: http://doc.qt.io/qt-5/qtglobal.html#qSetMessagePattern

According to http://doc.qt.io/qt-5/qdatetime.html#toString , the highest precision QDateTime can output is milliseconds

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears you're right. Not possible to fix.

Changed in canonical-devices-system-image:
status: New → Won't Fix
Changed in unity8 (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.