diff options
author | Simon Rettberg | 2015-11-30 13:59:05 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-11-30 13:59:05 +0100 |
commit | 9ffb0038ded686a177b06f268f08c9bcd48128b2 (patch) | |
tree | 8d50f7f92db37b2ce9a9e0933072f4203d587ac6 /src/server/log.h | |
parent | [FUSE] Mid-refactoring, does not compile (diff) | |
download | dnbd3-9ffb0038ded686a177b06f268f08c9bcd48128b2.tar.gz dnbd3-9ffb0038ded686a177b06f268f08c9bcd48128b2.tar.xz dnbd3-9ffb0038ded686a177b06f268f08c9bcd48128b2.zip |
[FUSE] Compiles again
Diffstat (limited to 'src/server/log.h')
-rw-r--r-- | src/server/log.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/server/log.h b/src/server/log.h deleted file mode 100644 index f273cab..0000000 --- a/src/server/log.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * This file is part of the Distributed Network Block Device 3 - * - * Copyright(c) 2011-2012 Simon Rettberg - * - * This file may be licensed under the terms of of the - * GNU General Public License Version 2 (the ``GPL''). - * - * Software distributed under the License is distributed - * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either - * express or implied. See the GPL for the specific language - * governing rights and limitations. - * - * You should have received a copy of the GPL along with this - * program. If not, go to http://www.gnu.org/licenses/gpl.html - * or write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - */ - -#ifndef LOG_H_ -#define LOG_H_ - -#include <stdbool.h> - -typedef unsigned int logmask_t; -#define LOG_ERROR ((logmask_t)1) // Fatal error, server will terminate -#define LOG_WARNING ((logmask_t)2) // Major issue, something is broken but keep running -#define LOG_MINOR ((logmask_t)4) // Minor issue, more of a hickup than serious problem -#define LOG_INFO ((logmask_t)8) // Informational message -#define LOG_DEBUG1 ((logmask_t)16) // Debug information, use this for non-spammy stuff -#define LOG_DEBUG2 ((logmask_t)32) // Use this for debug messages that will show up a lot - -void log_setFileMask(logmask_t mask); - -void log_setConsoleMask(logmask_t mask); - -/** - * Open or reopen the log file. If path is NULL and the - * function was called with a path before, the same path - * will be used again. - */ -bool log_openLogFile(const char *path); - -/** - * Add a line to the log - */ -void logadd(const logmask_t mask, const char *text, ...); - -/** - * Return last size bytes of log. - */ -bool log_fetch(char *buffer, int size); - -#endif /* LOG_H_ */ |