From ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 22 Feb 2015 22:03:39 +0100 Subject: [SERVER] Overhauled logging - Added message type parameter - Log to file and stdout, no more logging in memory - Added options to server.conf to filter which messages show up where --- src/server/memlog.h | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/server/memlog.h (limited to 'src/server/memlog.h') diff --git a/src/server/memlog.h b/src/server/memlog.h deleted file mode 100644 index 38c4349..0000000 --- a/src/server/memlog.h +++ /dev/null @@ -1,39 +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 MEMLOG_H_ -#define MEMLOG_H_ - -void initmemlog(); - -/** - * Add a line to the log - */ -void memlogf(char *text, ...); - -/** - * Return log lines, separated by \n - * You need to free() the returned memory after use - * Returns NULL on error - * maxlines - Limit number of lines returned, 0 = everything - */ -char *fetchlog(int maxlines); - -#endif /* MEMLOG_H_ */ -- cgit v1.2.3-55-g7522