Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
c1386853
Commit
c1386853
authored
Jul 14, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue #1147
parent
3a94a605
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
wincolor_sink-inl.h
include/spdlog/sinks/wincolor_sink-inl.h
+0
-0
wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+5
-0
No files found.
include/spdlog/sinks/wincolor_sink-inl.h
View file @
c1386853
This diff is collapsed.
Click to expand it.
include/spdlog/sinks/wincolor_sink.h
View file @
c1386853
...
@@ -50,6 +50,7 @@ protected:
...
@@ -50,6 +50,7 @@ protected:
HANDLE
out_handle_
;
HANDLE
out_handle_
;
mutex_t
&
mutex_
;
mutex_t
&
mutex_
;
bool
should_do_colors_
;
bool
should_do_colors_
;
bool
in_console_
;
std
::
unique_ptr
<
spdlog
::
formatter
>
formatter_
;
std
::
unique_ptr
<
spdlog
::
formatter
>
formatter_
;
std
::
unordered_map
<
level
::
level_enum
,
WORD
,
level
::
level_hasher
>
colors_
;
std
::
unordered_map
<
level
::
level_enum
,
WORD
,
level
::
level_hasher
>
colors_
;
...
@@ -57,6 +58,10 @@ protected:
...
@@ -57,6 +58,10 @@ protected:
WORD
set_console_attribs
(
WORD
attribs
);
WORD
set_console_attribs
(
WORD
attribs
);
// print a range of formatted message to console
// print a range of formatted message to console
void
print_range_
(
const
fmt
::
memory_buffer
&
formatted
,
size_t
start
,
size_t
end
);
void
print_range_
(
const
fmt
::
memory_buffer
&
formatted
,
size_t
start
,
size_t
end
);
//in case we are redirected to file (not in console mode)
void
write_to_file_
(
const
fmt
::
memory_buffer
&
formatted
);
};
};
template
<
typename
ConsoleMutex
>
template
<
typename
ConsoleMutex
>
...
...
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