Revision 507372bb dclog/log.c

View differences:

dclog/log.c
1 1
/*
2
 * This file implements logging functionality for the GRAPES framework
2
 * This file implements logging functionality for the NAPA framework
3 3
 */
4 4

  
5 5
#define _GNU_SOURCE
......
7 7
#include	<stdio.h>
8 8
#include	<stdlib.h>
9 9
#include	<stdarg.h>
10
#include	<grapes_log.h>
10
#include	<napa_log.h>
11 11
#include	"dclog.h"
12 12

  
13 13
DCLog *dclog = NULL;
......
16 16
char *logbuffer = NULL;
17 17
size_t logbuffer_size = 0;
18 18

  
19
void grapesInitLog(int log_level, const char *filename, const char *mode) {
19
void napaInitLog(int log_level, const char *filename, const char *mode) {
20 20
        if (initialized) return;
21 21

  
22 22
        /* Initialize the logger facility */
......
51 51
        initialized = 1;
52 52
}
53 53

  
54
void grapesCloseLog() {
54
void napaCloseLog() {
55 55
	if (!initialized) return;
56 56

  
57 57
	DCLogClose(dclog);
......
60 60
	initialized = 0;
61 61
}
62 62

  
63
void grapesWriteLog(const unsigned char lev, const char *fmt, ... ) {
63
void napaWriteLog(const unsigned char lev, const char *fmt, ... ) {
64 64
	va_list str_args;
65 65

  
66 66
	if (!initialized) return;

Also available in: Unified diff