Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
7b8d5076
Commit
7b8d5076
authored
Feb 13, 2016
by
Sebastian Messmer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow syslog logger on Mac OS X
parent
0c7beb2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
spdlog_impl.h
include/spdlog/details/spdlog_impl.h
+1
-1
syslog_sink.h
include/spdlog/sinks/syslog_sink.h
+1
-1
spdlog.h
include/spdlog/spdlog.h
+1
-1
No files found.
include/spdlog/details/spdlog_impl.h
View file @
7b8d5076
...
...
@@ -71,7 +71,7 @@ inline std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st(const std::strin
return
details
::
registry
::
instance
().
create
(
logger_name
,
spdlog
::
sinks
::
stderr_sink_st
::
instance
());
}
#if
def __linux__
#if
defined(__linux__) || defined(__APPLE__)
// Create syslog logger
inline
std
::
shared_ptr
<
spdlog
::
logger
>
spdlog
::
syslog_logger
(
const
std
::
string
&
logger_name
,
const
std
::
string
&
syslog_ident
,
int
syslog_option
)
{
...
...
include/spdlog/sinks/syslog_sink.h
View file @
7b8d5076
...
...
@@ -5,7 +5,7 @@
#pragma once
#if
def __linux__
#if
defined(__linux__) || defined(__APPLE__)
#include <array>
#include <string>
...
...
include/spdlog/spdlog.h
View file @
7b8d5076
...
...
@@ -78,7 +78,7 @@ std::shared_ptr<logger> stderr_logger_st(const std::string& logger_name);
//
// Create and register a syslog logger
//
#if
def __linux__
#if
defined(__linux__) || defined(__APPLE__)
std
::
shared_ptr
<
logger
>
syslog_logger
(
const
std
::
string
&
logger_name
,
const
std
::
string
&
ident
=
""
,
int
syslog_option
=
0
);
#endif
...
...
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