Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include milliseconds in log timestamps. #7163

Merged
merged 2 commits into from Jun 1, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion source/logHandler.py
@@ -1,3 +1,9 @@
#logHandler.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2007-2016 NV Access Limited, Rui Batista
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.

"""Utilities and classes to manage logging in NVDA"""

import os
Expand Down Expand Up @@ -301,7 +307,7 @@ def initialize(shouldDoRemoteLogging=False):
logging.addLevelName(Logger.DEBUGWARNING, "DEBUGWARNING")
logging.addLevelName(Logger.IO, "IO")
if not shouldDoRemoteLogging:
logFormatter=Formatter("%(levelname)s - %(codepath)s (%(asctime)s):\n%(message)s", "%H:%M:%S")
logFormatter=Formatter("%(levelname)s - %(codepath)s (%(asctime)s.%(msecs)03d):\n%(message)s", "%H:%M:%S")
if globalVars.appArgs.secure:
# Don't log in secure mode.
logHandler = logging.NullHandler()
Expand Down