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
e8daf7c7
Unverified
Commit
e8daf7c7
authored
Feb 12, 2020
by
Gabi Melman
Committed by
GitHub
Feb 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1431 from tt4g/avoid-references-to-race-data-filename
Avoid references to race data filename
parents
a343328a
0cf1af5b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/spdlog/sinks/daily_file_sink.h
include/spdlog/sinks/daily_file_sink.h
+1
-1
include/spdlog/sinks/rotating_file_sink-inl.h
include/spdlog/sinks/rotating_file_sink-inl.h
+1
-1
include/spdlog/sinks/rotating_file_sink.h
include/spdlog/sinks/rotating_file_sink.h
+1
-1
No files found.
include/spdlog/sinks/daily_file_sink.h
View file @
e8daf7c7
...
@@ -70,7 +70,7 @@ public:
...
@@ -70,7 +70,7 @@ public:
}
}
}
}
const
filename_t
&
filename
()
filename_t
filename
()
{
{
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
mutex_
);
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
mutex_
);
return
file_helper_
.
filename
();
return
file_helper_
.
filename
();
...
...
include/spdlog/sinks/rotating_file_sink-inl.h
View file @
e8daf7c7
...
@@ -54,7 +54,7 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::calc_filename(const filename
...
@@ -54,7 +54,7 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::calc_filename(const filename
}
}
template
<
typename
Mutex
>
template
<
typename
Mutex
>
SPDLOG_INLINE
const
filename_t
&
rotating_file_sink
<
Mutex
>::
filename
()
SPDLOG_INLINE
filename_t
rotating_file_sink
<
Mutex
>::
filename
()
{
{
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
mutex_
);
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
mutex_
);
return
file_helper_
.
filename
();
return
file_helper_
.
filename
();
...
...
include/spdlog/sinks/rotating_file_sink.h
View file @
e8daf7c7
...
@@ -24,7 +24,7 @@ class rotating_file_sink final : public base_sink<Mutex>
...
@@ -24,7 +24,7 @@ class rotating_file_sink final : public base_sink<Mutex>
public:
public:
rotating_file_sink
(
filename_t
base_filename
,
std
::
size_t
max_size
,
std
::
size_t
max_files
,
bool
rotate_on_open
=
false
);
rotating_file_sink
(
filename_t
base_filename
,
std
::
size_t
max_size
,
std
::
size_t
max_files
,
bool
rotate_on_open
=
false
);
static
filename_t
calc_filename
(
const
filename_t
&
filename
,
std
::
size_t
index
);
static
filename_t
calc_filename
(
const
filename_t
&
filename
,
std
::
size_t
index
);
const
filename_t
&
filename
();
filename_t
filename
();
protected:
protected:
void
sink_it_
(
const
details
::
log_msg
&
msg
)
override
;
void
sink_it_
(
const
details
::
log_msg
&
msg
)
override
;
...
...
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