Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
933b441a
Commit
933b441a
authored
May 03, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/app/logger/Logger): supports ms
parent
9830b784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Logger.cpp
linphone-desktop/src/app/logger/Logger.cpp
+8
-2
No files found.
linphone-desktop/src/app/logger/Logger.cpp
View file @
933b441a
...
...
@@ -61,6 +61,12 @@ Logger *Logger::mInstance = nullptr;
// -----------------------------------------------------------------------------
inline
QByteArray
getFormattedCurrentTime
()
{
return
QDateTime
::
currentDateTime
().
toString
(
"HH:mm:ss:zzz"
).
toLocal8Bit
();
}
// -----------------------------------------------------------------------------
static
void
linphoneLog
(
const
char
*
domain
,
OrtpLogLevel
type
,
const
char
*
fmt
,
va_list
args
)
{
const
char
*
format
;
...
...
@@ -79,7 +85,7 @@ static void linphoneLog (const char *domain, OrtpLogLevel type, const char *fmt,
else
return
;
QByteArray
dateTime
=
QDateTime
::
currentDateTime
().
toString
(
"HH:mm:ss"
).
toLocal8Bit
();
QByteArray
dateTime
=
getFormattedCurrentTime
();
char
*
msg
=
bctbx_strdup_vprintf
(
fmt
,
args
);
fprintf
(
stderr
,
format
,
dateTime
.
constData
(),
domain
,
msg
);
...
...
@@ -134,7 +140,7 @@ void Logger::log (QtMsgType type, const QMessageLogContext &context, const QStri
#endif // ifdef QT_MESSAGELOGCONTEXT
QByteArray
localMsg
=
msg
.
toLocal8Bit
();
QByteArray
dateTime
=
QDateTime
::
currentDateTime
().
toString
(
"HH:mm:ss"
).
toLocal8Bit
();
QByteArray
dateTime
=
getFormattedCurrentTime
();
mMutex
.
lock
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment