mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
* update README example
This commit is contained in:
parent
8c9a6fc02c
commit
235834b33c
@ -96,7 +96,8 @@ int main(int, char* [])
|
||||
// syslog example
|
||||
//
|
||||
#ifdef __linux__
|
||||
auto syslog_logger = spd::syslog_logger("syslog");
|
||||
std::string ident = "my_app";
|
||||
auto syslog_logger = spd::syslog_logger("syslog", ident, spd::sinks::syslog::option::PID | spd::sinks::syslog::option::PERROR, "mail" );
|
||||
syslog_logger->warn("This is warning that will end up in syslog. This is Linux only!");
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user