Log everything to the terminal. More...
#include "config.h"
#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "mutt/lib.h"
#include "lib.h"
Go to the source code of this file.
Functions | |
static int | log_timestamp (char *buf, size_t buflen, time_t time) |
Write a timestamp to a buffer. | |
static int | log_level (char *buf, size_t buflen, enum LogLevel level) |
Write a log level to a buffer. | |
int | log_disp_debug (time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...) |
Display a log line on screen - Implements log_dispatcher_t -. | |
Variables | |
bool | DebugLogColor = false |
Output ANSI colours. | |
bool | DebugLogLevel = false |
Prefix log level, e.g. [E]. | |
bool | DebugLogTimestamp = false |
Show the timestamp. | |
const char * | LevelAbbr |
Abbreviations of logging level names. | |
Log everything to the terminal.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file logging.c.
|
static |
Write a timestamp to a buffer.
buf | Buffer for the result |
buflen | Length of the buffer |
time | Timestamp |
num | Bytes written to buffer |
Definition at line 52 of file logging.c.
|
static |