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
c71b433a
Commit
c71b433a
authored
Feb 25, 2020
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
0b91d552
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/spdlog/sinks/ansicolor_sink.h
include/spdlog/sinks/ansicolor_sink.h
+1
-1
include/spdlog/sinks/wincolor_sink.h
include/spdlog/sinks/wincolor_sink.h
+1
-1
No files found.
include/spdlog/sinks/ansicolor_sink.h
View file @
c71b433a
...
...
@@ -80,7 +80,7 @@ private:
mutex_t
&
mutex_
;
bool
should_do_colors_
;
std
::
unique_ptr
<
spdlog
::
formatter
>
formatter_
;
std
::
array
<
string_view_t
,
level
::
n_levels
>
colors_
;
std
::
array
<
string_view_t
,
level
::
n_levels
>
colors_
;
void
print_ccode_
(
const
string_view_t
&
color_code
);
void
print_range_
(
const
memory_buf_t
&
formatted
,
size_t
start
,
size_t
end
);
};
...
...
include/spdlog/sinks/wincolor_sink.h
View file @
c71b433a
...
...
@@ -52,7 +52,7 @@ protected:
bool
in_console_
;
bool
should_do_colors_
;
std
::
unique_ptr
<
spdlog
::
formatter
>
formatter_
;
std
::
array
<
WORD
,
level
::
n_levels
>
colors_
;
std
::
array
<
WORD
,
level
::
n_levels
>
colors_
;
// set foreground color and return the orig console attributes (for resetting later)
WORD
set_foreground_color_
(
WORD
attribs
);
...
...
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