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
884c23a9
Commit
884c23a9
authored
May 24, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge v1.x
parent
7a3a560c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
include/spdlog/details/os-inl.h
include/spdlog/details/os-inl.h
+2
-2
include/spdlog/details/pattern_formatter-inl.h
include/spdlog/details/pattern_formatter-inl.h
+21
-21
No files found.
include/spdlog/details/os-inl.h
View file @
884c23a9
...
...
@@ -178,7 +178,7 @@ SPDLOG_INLINE bool file_exists(const filename_t &filename) SPDLOG_NOEXCEPT
return
(
attribs
!=
INVALID_FILE_ATTRIBUTES
&&
!
(
attribs
&
FILE_ATTRIBUTE_DIRECTORY
));
#else // common linux/unix all have the stat system call
struct
stat
buffer
;
return
(
stat
(
filename
.
c_str
(),
&
buffer
)
==
0
);
return
(
::
stat
(
filename
.
c_str
(),
&
buffer
)
==
0
);
#endif
}
...
...
@@ -218,7 +218,7 @@ SPDLOG_INLINE size_t filesize(FILE *f)
#else // unix 32 bits or cygwin
struct
stat
st
;
if
(
fstat
(
fd
,
&
st
)
==
0
)
if
(
::
fstat
(
fd
,
&
st
)
==
0
)
{
return
static_cast
<
size_t
>
(
st
.
st_size
);
}
...
...
include/spdlog/details/pattern_formatter-inl.h
View file @
884c23a9
...
...
@@ -304,7 +304,7 @@ class Y_formatter final : public flag_formatter
{
public:
explicit
Y_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -367,7 +367,7 @@ class I_formatter final : public flag_formatter
{
public:
explicit
I_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -382,7 +382,7 @@ class M_formatter final : public flag_formatter
{
public:
explicit
M_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -397,7 +397,7 @@ class S_formatter final : public flag_formatter
{
public:
explicit
S_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -412,7 +412,7 @@ class e_formatter final : public flag_formatter
{
public:
explicit
e_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -435,7 +435,7 @@ class f_formatter final : public flag_formatter
{
public:
explicit
f_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -458,7 +458,7 @@ class F_formatter final : public flag_formatter
{
public:
explicit
F_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -481,7 +481,7 @@ class E_formatter final : public flag_formatter
{
public:
explicit
E_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -498,7 +498,7 @@ class p_formatter final : public flag_formatter
{
public:
explicit
p_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -513,7 +513,7 @@ class r_formatter final : public flag_formatter
{
public:
explicit
r_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -535,7 +535,7 @@ class R_formatter final : public flag_formatter
{
public:
explicit
R_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -553,7 +553,7 @@ class T_formatter final : public flag_formatter
{
public:
explicit
T_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -573,7 +573,7 @@ class z_formatter final : public flag_formatter
{
public:
explicit
z_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
const
std
::
chrono
::
seconds
cache_refresh
=
std
::
chrono
::
seconds
(
5
);
...
...
@@ -632,7 +632,7 @@ class t_formatter final : public flag_formatter
{
public:
explicit
t_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -654,7 +654,7 @@ class pid_formatter final : public flag_formatter
{
public:
explicit
pid_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -676,7 +676,7 @@ class v_formatter final : public flag_formatter
{
public:
explicit
v_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -760,7 +760,7 @@ class source_location_formatter final : public flag_formatter
{
public:
explicit
source_location_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -789,7 +789,7 @@ class source_filename_formatter final : public flag_formatter
{
public:
explicit
source_filename_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -806,7 +806,7 @@ class source_linenum_formatter final : public flag_formatter
{
public:
explicit
source_linenum_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -831,7 +831,7 @@ class source_funcname_formatter final : public flag_formatter
{
public:
explicit
source_funcname_formatter
(
padding_info
padinfo
)
:
flag_formatter
(
padinfo
){}
;
:
flag_formatter
(
padinfo
){}
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
...
...
@@ -1169,7 +1169,7 @@ SPDLOG_INLINE details::padding_info pattern_formatter::handle_padspec_(std::stri
const
size_t
max_width
=
128
;
if
(
it
==
end
)
{
return
padding_info
{}
;
return
padding_info
{}
}
padding_info
::
pad_side
side
;
...
...
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