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
86627073
Commit
86627073
authored
Mar 28, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatter small cleanup
parent
8b53671c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/c11log/formatter.h
include/c11log/formatter.h
+5
-6
include/c11log/sinks/file_sinks.h
include/c11log/sinks/file_sinks.h
+1
-0
No files found.
include/c11log/formatter.h
View file @
86627073
...
...
@@ -3,10 +3,9 @@
#include <string>
#include <chrono>
#include <functional>
#include <sstream>
#include <iomanip>
#include <thread>
#include <cstdlib>
#include <cstring>
#include "common_types.h"
...
...
@@ -18,14 +17,14 @@ namespace c11log
namespace
formatters
{
typedef
std
::
function
<
std
::
string
(
const
std
::
string
&
logger_name
,
const
std
::
string
&
,
level
::
level_enum
,
const
c11log
::
log_clock
::
time_point
&
)
>
format_fn
;
class
formatter
{
public:
formatter
()
{}
virtual
~
formatter
()
{}
formatter
()
=
default
;
virtual
~
formatter
()
=
default
;
formatter
(
const
formatter
&
)
=
delete
;
formatter
&
operator
=
(
const
formatter
&
)
=
delete
;
virtual
void
format_header
(
const
std
::
string
&
logger_name
,
level
::
level_enum
level
,
const
log_clock
::
time_point
&
tp
,
std
::
ostream
&
dest
)
=
0
;
};
...
...
include/c11log/sinks/file_sinks.h
View file @
86627073
#pragma once
#include <fstream>
#include <sstream>
#include <iomanip>
#include <mutex>
#include "base_sink.h"
...
...
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