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
7636f1f6
Commit
7636f1f6
authored
Jul 14, 2021
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert some changes made by mistake
parent
1523c836
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
example/example.cpp
example/example.cpp
+1
-2
No files found.
CMakeLists.txt
View file @
7636f1f6
...
...
@@ -33,7 +33,7 @@ endif ()
# Compiler config
# ---------------------------------------------------------------------------------------
if
(
NOT CMAKE_CXX_STANDARD
)
set
(
CMAKE_CXX_STANDARD
20
)
set
(
CMAKE_CXX_STANDARD
11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
endif
()
...
...
example/example.cpp
View file @
7636f1f6
...
...
@@ -23,14 +23,13 @@ void custom_flags_example();
#include "spdlog/spdlog.h"
#include "spdlog/cfg/env.h" // support for loading levels from the environment variable
#include "spdlog/fmt/compile.h"
int
main
(
int
,
char
*
[])
{
// Log levels can be loaded from argv/env using "SPDLOG_LEVEL"
load_levels_example
();
spdlog
::
info
(
FMT_COMPILE
(
"Welcome to spdlog version {}.{}.{} {:d} !"
),
SPDLOG_VER_MAJOR
,
SPDLOG_VER_MINOR
,
SPDLOG_VER_PATCH
,
"SS"
);
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
::
critical
(
"Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}"
,
42
);
...
...
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