-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install boost, add demo for boost log
- Loading branch information
1 parent
00fc834
commit 45f1e07
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "boost_log.h" | ||
#include <boost/log/trivial.hpp> | ||
#include <iostream> | ||
|
||
#define LOG BOOST_LOG_TRIVIAL | ||
|
||
int demo_boost_log() { | ||
std::cout << "Prueba de Boost Log" << std::endl; | ||
LOG(trace) << "A trace severity message"; | ||
BOOST_LOG_TRIVIAL(debug) << "A debug severity message"; | ||
BOOST_LOG_TRIVIAL(info) << "An informational severity message"; | ||
BOOST_LOG_TRIVIAL(warning) << "A warning severity message"; | ||
BOOST_LOG_TRIVIAL(error) << "An error severity message"; | ||
BOOST_LOG_TRIVIAL(fatal) << "A fatal severity message"; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
|
||
#include "../shared.h" | ||
|
||
int demo_boost_log(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters