plptools
Loading...
Searching...
No Matches
ncp_log.cc
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 1999 Philip Proudman <philip.proudman@btinternet.com>
5 * Copyright (C) 1999-2001 Fritz Elfert <felfert@to.com>
6 * Copyright (C) 2026 Jason Morley <hello@jbmorley.co.uk>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * along with this program; if not, see <https://www.gnu.org/licenses/>.
20 *
21 */
22#include "config.h"
23#include "ncp_log.h"
24
25#include <iostream>
26#include <unistd.h>
27
28#include <fcntl.h>
29
30logbuf ilog(LOG_INFO, STDOUT_FILENO);
31logbuf dlog(LOG_DEBUG, STDOUT_FILENO);
32logbuf elog(LOG_ERR, STDERR_FILENO);
33
A streambuffer, logging via syslog.
Definition: log.h:51
logbuf dlog(LOG_DEBUG, STDOUT_FILENO)
Definition: ncp_log.cc:35
logbuf elog(LOG_ERR, STDERR_FILENO)
Definition: ncp_log.cc:36
logbuf ilog(LOG_INFO, STDOUT_FILENO)
Definition: ncp_log.cc:34
std::ostream lerr
std::ostream lout
std::ostream linf