summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.container.keybuffer.html
Commit message (Expand)AuthorAgeFilesLines
* updated pydochut2010-03-121-11/+12
* incremented version number and updated pydoc html files v1.0.3hut2010-02-161-4/+4
* updated pydoc documentationhut2010-01-131-1/+13
* moved pydoc pages to doc/pydochut2009-12-251-0/+76
; 2012-02-06 22:29:05 +0000 Moved incoming display message' href='/danisanti/profani-tty/commit/log.c?id=bbb0fbed4ffe472ef8672acad538cee597bf7e4f'>bbb0fbed ^
5eaf687d ^

4d190a9c ^
bbb0fbed ^

4d190a9c ^





bbb0fbed ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38



















                                                                           
                       

 
                                                             
 
                                               

 
                   

                                       





                                           
 
#include <stdio.h>
#include <strophe/strophe.h>

#include "log.h"

extern FILE *logp;

void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
    const char * const area, const char * const msg);

static const xmpp_log_t file_log = { &xmpp_file_logger, XMPP_LEVEL_DEBUG };

xmpp_log_t *xmpp_get_file_logger()
{
    return (xmpp_log_t*) &file_log;
}

void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
    const char * const area, const char * const msg)
{
    log_msg(area, msg);
}

void log_msg(const char * const area, const char * const msg)
{
    fprintf(logp, "%s DEBUG: %s\n", area, msg);
}

void log_init(void)
{
    logp = fopen("profanity.log", "a");
    log_msg(PROF, "Starting Profanity...");
}

void log_close(void)
{
    fclose(logp);
}