/usr/include/log4c/init.h is in liblog4c-dev 1.2.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | /* $Id$
*
* Copyright 2001-2003, Meiosys (www.meiosys.com). All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef __log4c_init_h
#define __log4c_init_h
#include <log4c/defs.h>
#include <stdio.h>
/**
* @file init.h
*
* @brief log4c constructors and destructors
*
**/
/**
* constructor
*
* @returns 0 for success
**/
LOG4C_API int log4c_init(void);
/**
* destructor
*
* @returns 0 for success
**/
LOG4C_API int log4c_fini(void);
/*
* Dumps all the current appender, layout and rollingpolicy types
* known by log4c.
* @param stream to write to
*/
LOG4C_API void log4c_dump_all_types(FILE *fp);
/*
* Dumps all the current instances of categories, appenders, layouts
* and rollingpolicy objects.
* An instances of a type consists of the base
* type information (name plus function table) and an instance name and
* configuration. For example one can have an instance of the rollingfile
* appender which logs to /var/tmp and another instance which logs to
* /usr/tmp. They are both of type rollingfile, but are distinct instances of
* it
* @param stream to write t
*/
LOG4C_API void log4c_dump_all_instances(FILE *fp);
#endif
|