Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
df45d78d
Commit
df45d78d
authored
Aug 13, 2021
by
Wolfgang Petroschka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows/wchar problems
Mixing char types in libfmt is a problem and WIP.
parent
c98b29aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
include/spdlog/async_logger-inl.h
include/spdlog/async_logger-inl.h
+1
-5
include/spdlog/logger-inl.h
include/spdlog/logger-inl.h
+1
-5
include/spdlog/logger.h
include/spdlog/logger.h
+6
-2
No files found.
include/spdlog/async_logger-inl.h
View file @
df45d78d
...
@@ -80,11 +80,7 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_()
...
@@ -80,11 +80,7 @@ SPDLOG_INLINE void spdlog::async_logger::backend_flush_()
{
{
sink
->
flush
();
sink
->
flush
();
}
}
#if (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
SPDLOG_LOGGER_CATCH
(
""
)
SPDLOG_LOGGER_CATCH
(
wstring_view_t
())
#else
SPDLOG_LOGGER_CATCH
(
string_view_t
())
#endif
}
}
}
}
...
...
include/spdlog/logger-inl.h
View file @
df45d78d
...
@@ -203,11 +203,7 @@ SPDLOG_INLINE void logger::flush_()
...
@@ -203,11 +203,7 @@ SPDLOG_INLINE void logger::flush_()
{
{
sink
->
flush
();
sink
->
flush
();
}
}
#if (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
SPDLOG_LOGGER_CATCH
(
""
)
SPDLOG_LOGGER_CATCH
(
wstring_view_t
())
#else
SPDLOG_LOGGER_CATCH
(
string_view_t
())
#endif
}
}
}
}
...
...
include/spdlog/logger.h
View file @
df45d78d
...
@@ -356,7 +356,9 @@ protected:
...
@@ -356,7 +356,9 @@ protected:
details
::
log_msg
log_msg
(
loc
,
name_
,
lvl
,
string_view_t
(
buf
.
data
(),
buf
.
size
()));
details
::
log_msg
log_msg
(
loc
,
name_
,
lvl
,
string_view_t
(
buf
.
data
(),
buf
.
size
()));
log_it_
(
log_msg
,
log_enabled
,
traceback_enabled
);
log_it_
(
log_msg
,
log_enabled
,
traceback_enabled
);
}
}
SPDLOG_LOGGER_CATCH
(
fmt
)
// TODO: This isn't working yet.
SPDLOG_LOGGER_CATCH
(
""
)
//SPDLOG_LOGGER_CATCH(fmt)
}
}
// T can be statically converted to wstring_view, and no formatting needed.
// T can be statically converted to wstring_view, and no formatting needed.
...
@@ -376,7 +378,9 @@ protected:
...
@@ -376,7 +378,9 @@ protected:
details
::
log_msg
log_msg
(
loc
,
name_
,
lvl
,
string_view_t
(
buf
.
data
(),
buf
.
size
()));
details
::
log_msg
log_msg
(
loc
,
name_
,
lvl
,
string_view_t
(
buf
.
data
(),
buf
.
size
()));
log_it_
(
log_msg
,
log_enabled
,
traceback_enabled
);
log_it_
(
log_msg
,
log_enabled
,
traceback_enabled
);
}
}
SPDLOG_LOGGER_CATCH
(
msg
)
// TODO: This isn't working yet.
SPDLOG_LOGGER_CATCH
(
""
)
//SPDLOG_LOGGER_CATCH(msg)
}
}
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
...
...
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