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
06580c83
Unverified
Commit
06580c83
authored
Apr 11, 2018
by
Erik
Committed by
GitHub
Apr 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update file_sinks.h
parent
6f12242a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
include/spdlog/sinks/file_sinks.h
include/spdlog/sinks/file_sinks.h
+5
-1
No files found.
include/spdlog/sinks/file_sinks.h
View file @
06580c83
...
@@ -287,6 +287,11 @@ public:
...
@@ -287,6 +287,11 @@ public:
_current_size
=
_file_helper
.
size
();
// expensive. called only once
_current_size
=
_file_helper
.
size
();
// expensive. called only once
}
}
~
step_file_sink
()
{
close_current_file
();
}
protected:
protected:
void
_sink_it
(
const
details
::
log_msg
&
msg
)
override
void
_sink_it
(
const
details
::
log_msg
&
msg
)
override
{
{
...
@@ -306,7 +311,6 @@ protected:
...
@@ -306,7 +311,6 @@ protected:
void
_flush
()
override
void
_flush
()
override
{
{
_file_helper
.
flush
();
_file_helper
.
flush
();
close_current_file
();
}
}
private:
private:
...
...
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