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
65d02e49
Commit
65d02e49
authored
Sep 05, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted the version() function
parent
f196a9fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
example/example.cpp
example/example.cpp
+1
-1
include/spdlog/spdlog-inl.h
include/spdlog/spdlog-inl.h
+0
-5
include/spdlog/spdlog.h
include/spdlog/spdlog.h
+0
-4
No files found.
example/example.cpp
View file @
65d02e49
...
@@ -22,7 +22,7 @@ void syslog_example();
...
@@ -22,7 +22,7 @@ void syslog_example();
int
main
(
int
,
char
*
[])
int
main
(
int
,
char
*
[])
{
{
spdlog
::
info
(
"Welcome to spdlog version {}
!"
,
spdlog
::
version
()
);
spdlog
::
info
(
"Welcome to spdlog version {}
.{}.{} !"
,
SPDLOG_VER_MAJOR
,
SPDLOG_VER_MINOR
,
SPDLOG_VER_PATCH
);
spdlog
::
warn
(
"Easy padding in numbers like {:08d}"
,
12
);
spdlog
::
warn
(
"Easy padding in numbers like {:08d}"
,
12
);
spdlog
::
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
spdlog
::
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
spdlog
::
info
(
"Support for floats {:03.2f}"
,
1.23456
);
spdlog
::
info
(
"Support for floats {:03.2f}"
,
1.23456
);
...
...
include/spdlog/spdlog-inl.h
View file @
65d02e49
...
@@ -112,9 +112,4 @@ SPDLOG_INLINE void set_default_logger(std::shared_ptr<spdlog::logger> default_lo
...
@@ -112,9 +112,4 @@ SPDLOG_INLINE void set_default_logger(std::shared_ptr<spdlog::logger> default_lo
details
::
registry
::
instance
().
set_default_logger
(
std
::
move
(
default_logger
));
details
::
registry
::
instance
().
set_default_logger
(
std
::
move
(
default_logger
));
}
}
SPDLOG_INLINE
std
::
string
version
()
{
return
fmt
::
format
(
"{}.{}.{}"
,
SPDLOG_VER_MAJOR
,
SPDLOG_VER_MINOR
,
SPDLOG_VER_PATCH
);
}
}
// namespace spdlog
}
// namespace spdlog
\ No newline at end of file
include/spdlog/spdlog.h
View file @
65d02e49
...
@@ -103,10 +103,6 @@ void shutdown();
...
@@ -103,10 +103,6 @@ void shutdown();
// Automatic registration of loggers when using spdlog::create() or spdlog::create_async
// Automatic registration of loggers when using spdlog::create() or spdlog::create_async
void
set_automatic_registration
(
bool
automatic_registation
);
void
set_automatic_registration
(
bool
automatic_registation
);
// return spdlog version
std
::
string
version
();
// API for using default logger (stdout_color_mt),
// API for using default logger (stdout_color_mt),
// e.g: spdlog::info("Message {}", 1);
// e.g: spdlog::info("Message {}", 1);
//
//
...
...
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