diff options
author | Simon Rettberg | 2015-02-22 22:03:39 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-02-22 22:03:39 +0100 |
commit | ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4 (patch) | |
tree | 4371eacef27e477523d6e05ef29c741540a77e32 /src/server/memlog.h | |
parent | Get rid of unneccessary volatile (diff) | |
download | dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.tar.gz dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.tar.xz dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.zip |
[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
Diffstat (limited to 'src/server/memlog.h')
-rw-r--r-- | src/server/memlog.h | 39 |
1 files changed, 0 insertions, 39 deletions
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_ */ |