/*
This file is part of GNUnet.
Copyright (C) 2006-2013 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
GNUnet is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file util/common_logging.c
* @brief error handling API
* @author Christian Grothoff
*/
#include "platform.h"
#include "gnunet_crypto_lib.h"
#include "gnunet_disk_lib.h"
#include "gnunet_strings_lib.h"
#include <regex.h>
/**
* After how many milliseconds do we always print
* that "message X was repeated N times"? Use 12h.
*/
#define BULK_DELAY_THRESHOLD (12 * 60 * 60 * 1000LL * 1000LL)
/**
* After how many repetitions do we always print
* that "message X was repeated N times"? (even if
* we have not yet reached the delay threshold)
*/
#define BULK_REPEAT_THRESHOLD 1000
/**
* How many characters do we use for matching of
* bulk messages?
*/
#define BULK_TRACK_SIZE 256
/**
* How many characters do we use for matching of
* bulk components?
*/
#define COMP_TRACK_SIZE 32
/**
* How many characters can a date/time string
* be at most?
*/
#define DATE_STR_SIZE 64
/**