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
0f39da54
Commit
0f39da54
authored
Jul 22, 2021
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated example
parent
28fef35a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
example/example.cpp
example/example.cpp
+2
-3
No files found.
example/example.cpp
View file @
0f39da54
...
@@ -22,8 +22,8 @@ void syslog_example();
...
@@ -22,8 +22,8 @@ void syslog_example();
void
custom_flags_example
();
void
custom_flags_example
();
#include "spdlog/spdlog.h"
#include "spdlog/spdlog.h"
#include "spdlog/cfg/env.h" // support for loading levels from the environment variable
#include "spdlog/cfg/env.h"
// support for loading levels from the environment variable
#include "spdlog/fmt/ostr.h"
#include "spdlog/fmt/ostr.h"
// support for user defined types
int
main
(
int
,
char
*
[])
int
main
(
int
,
char
*
[])
{
{
...
@@ -222,7 +222,6 @@ void multi_sink_example()
...
@@ -222,7 +222,6 @@ void multi_sink_example()
}
}
// User defined types logging by implementing operator<<
// User defined types logging by implementing operator<<
#include "spdlog/fmt/ostr.h" // must be included
struct
my_type
struct
my_type
{
{
int
i
;
int
i
;
...
...
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