Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
c41b6d28
Commit
c41b6d28
authored
Nov 24, 2017
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astyle
parent
fd170b0f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
18 deletions
+19
-18
async_log_helper.h
include/spdlog/details/async_log_helper.h
+4
-4
async_logger_impl.h
include/spdlog/details/async_logger_impl.h
+1
-1
logger_impl.h
include/spdlog/details/logger_impl.h
+7
-6
pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+1
-1
format.h
include/spdlog/fmt/bundled/format.h
+6
-6
No files found.
include/spdlog/details/async_log_helper.h
View file @
c41b6d28
...
@@ -279,13 +279,13 @@ inline void spdlog::details::async_log_helper::worker_loop()
...
@@ -279,13 +279,13 @@ inline void spdlog::details::async_log_helper::worker_loop()
catch
(
const
std
::
exception
&
ex
)
catch
(
const
std
::
exception
&
ex
)
{
{
_err_handler
(
ex
.
what
());
_err_handler
(
ex
.
what
());
}
}
catch
(...)
catch
(...)
{
{
_err_handler
(
"Unknown exeption in worker loop. Terminating worker loop"
);
_err_handler
(
"Unknown exeption in worker loop. Terminating worker loop"
);
active
=
false
;
active
=
false
;
}
}
}
}
if
(
_worker_teardown_cb
)
_worker_teardown_cb
();
if
(
_worker_teardown_cb
)
_worker_teardown_cb
();
...
...
include/spdlog/details/async_logger_impl.h
View file @
c41b6d28
...
@@ -98,7 +98,7 @@ inline void spdlog::async_logger::_sink_it(details::log_msg& msg)
...
@@ -98,7 +98,7 @@ inline void spdlog::async_logger::_sink_it(details::log_msg& msg)
{
{
_err_handler
(
ex
.
what
());
_err_handler
(
ex
.
what
());
}
}
catch
(...)
catch
(...)
{
{
_err_handler
(
"Unknown exception in logger "
+
_name
);
_err_handler
(
"Unknown exception in logger "
+
_name
);
throw
;
throw
;
...
...
include/spdlog/details/logger_impl.h
View file @
c41b6d28
...
@@ -77,10 +77,11 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* fmt, const Ar
...
@@ -77,10 +77,11 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* fmt, const Ar
{
{
_err_handler
(
ex
.
what
());
_err_handler
(
ex
.
what
());
}
}
catch
(...)
{
catch
(...)
_err_handler
(
"Unknown exception in logger "
+
_name
);
{
throw
;
_err_handler
(
"Unknown exception in logger "
+
_name
);
}
throw
;
}
}
}
template
<
typename
...
Args
>
template
<
typename
...
Args
>
...
@@ -96,7 +97,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* msg)
...
@@ -96,7 +97,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const char* msg)
catch
(
const
std
::
exception
&
ex
)
catch
(
const
std
::
exception
&
ex
)
{
{
_err_handler
(
ex
.
what
());
_err_handler
(
ex
.
what
());
}
}
}
}
template
<
typename
T
>
template
<
typename
T
>
...
@@ -112,7 +113,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T& msg)
...
@@ -112,7 +113,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T& msg)
catch
(
const
std
::
exception
&
ex
)
catch
(
const
std
::
exception
&
ex
)
{
{
_err_handler
(
ex
.
what
());
_err_handler
(
ex
.
what
());
}
}
}
}
...
...
include/spdlog/details/pattern_formatter_impl.h
View file @
c41b6d28
...
@@ -526,7 +526,7 @@ inline void spdlog::pattern_formatter::handle_flag(char flag)
...
@@ -526,7 +526,7 @@ inline void spdlog::pattern_formatter::handle_flag(char flag)
{
{
switch
(
flag
)
switch
(
flag
)
{
{
// logger name
// logger name
case
'n'
:
case
'n'
:
_formatters
.
push_back
(
std
::
unique_ptr
<
details
::
flag_formatter
>
(
new
details
::
name_formatter
()));
_formatters
.
push_back
(
std
::
unique_ptr
<
details
::
flag_formatter
>
(
new
details
::
name_formatter
()));
break
;
break
;
...
...
include/spdlog/fmt/bundled/format.h
View file @
c41b6d28
...
@@ -488,7 +488,7 @@ template <typename Impl, typename Char, typename Spec = fmt::FormatSpec>
...
@@ -488,7 +488,7 @@ template <typename Impl, typename Char, typename Spec = fmt::FormatSpec>
class
BasicPrintfArgFormatter
;
class
BasicPrintfArgFormatter
;
template
<
typename
CharType
,
template
<
typename
CharType
,
typename
ArgFormatter
=
fmt
::
ArgFormatter
<
CharType
>
>
typename
ArgFormatter
=
fmt
::
ArgFormatter
<
CharType
>
>
class
BasicFormatter
;
class
BasicFormatter
;
/**
/**
...
@@ -2618,15 +2618,15 @@ inline uint64_t make_type(const T &arg)
...
@@ -2618,15 +2618,15 @@ inline uint64_t make_type(const T &arg)
}
}
template
<
std
::
size_t
N
,
bool
/*IsPacked*/
=
(
N
<
ArgList
::
MAX_PACKED_ARGS
)
>
template
<
std
::
size_t
N
,
bool
/*IsPacked*/
=
(
N
<
ArgList
::
MAX_PACKED_ARGS
)
>
struct
ArgArray
;
struct
ArgArray
;
template
<
std
::
size_t
N
>
template
<
std
::
size_t
N
>
struct
ArgArray
<
N
,
true
/*IsPacked*/
>
struct
ArgArray
<
N
,
true
/*IsPacked*/
>
{
{
typedef
Value
Type
[
N
>
0
?
N
:
1
];
typedef
Value
Type
[
N
>
0
?
N
:
1
];
template
<
typename
Formatter
,
typename
T
>
template
<
typename
Formatter
,
typename
T
>
static
Value
make
(
const
T
&
value
)
static
Value
make
(
const
T
&
value
)
{
{
#ifdef __clang__
#ifdef __clang__
Value
result
=
MakeValue
<
Formatter
>
(
value
);
Value
result
=
MakeValue
<
Formatter
>
(
value
);
...
@@ -2638,7 +2638,7 @@ static Value make(const T &value)
...
@@ -2638,7 +2638,7 @@ static Value make(const T &value)
return
MakeValue
<
Formatter
>
(
value
);
return
MakeValue
<
Formatter
>
(
value
);
#endif
#endif
}
}
};
};
template
<
std
::
size_t
N
>
template
<
std
::
size_t
N
>
struct
ArgArray
<
N
,
false
/*IsPacked*/
>
struct
ArgArray
<
N
,
false
/*IsPacked*/
>
...
@@ -3473,7 +3473,7 @@ void BasicWriter<Char>::write_double(T value, const Spec &spec)
...
@@ -3473,7 +3473,7 @@ void BasicWriter<Char>::write_double(T value, const Spec &spec)
// MSVC's printf doesn't support 'F'.
// MSVC's printf doesn't support 'F'.
type
=
'f'
;
type
=
'f'
;
#endif
#endif
// Fall through.
// Fall through.
case
'E'
:
case
'E'
:
case
'G'
:
case
'G'
:
case
'A'
:
case
'A'
:
...
...
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