]> git.proxmox.com Git - mirror_zfs-debian.git/blame - cmd/zed/zed_log.h
Imported Upstream version 0.6.5.3
[mirror_zfs-debian.git] / cmd / zed / zed_log.h
CommitLineData
ea04106b 1/*
e10b0808
AX
2 * This file is part of the ZFS Event Daemon (ZED)
3 * for ZFS on Linux (ZoL) <http://zfsonlinux.org/>.
ea04106b
AX
4 * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049).
5 * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC.
e10b0808
AX
6 * Refer to the ZoL git commit log for authoritative copyright attribution.
7 *
8 * The contents of this file are subject to the terms of the
9 * Common Development and Distribution License Version 1.0 (CDDL-1.0).
10 * You can obtain a copy of the license from the top-level file
11 * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>.
12 * You may not use this file except in compliance with the license.
ea04106b
AX
13 */
14
15#ifndef ZED_LOG_H
16#define ZED_LOG_H
17
18#include <syslog.h>
19
20void zed_log_init(const char *identity);
21
22void zed_log_fini(void);
23
24void zed_log_pipe_open(void);
25
26void zed_log_pipe_close_reads(void);
27
28void zed_log_pipe_close_writes(void);
29
30void zed_log_pipe_wait(void);
31
32void zed_log_stderr_open(int priority);
33
34void zed_log_stderr_close(void);
35
36void zed_log_syslog_open(int facility);
37
38void zed_log_syslog_close(void);
39
40void zed_log_msg(int priority, const char *fmt, ...);
41
42void zed_log_die(const char *fmt, ...);
43
44#endif /* !ZED_LOG_H */