~ubuntu-branches/ubuntu/maverick/nss-pam-ldapd/maverick

« back to all changes in this revision

Viewing changes to nslcd/log.h

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2009-09-01 17:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090901170000-54hqcpmbxk32rzer
Tags: 0.7.0
* rename software to nss-pam-ldapd to indicate that PAM module is now a
  standard part of the software
* split into the binary packages libnss-ldapd, libpam-ldapd and nslcd
  (libpam-ldapd packaging used a patch for libpam-ldap by Steve Langasek)
  (closes: #535505)
* the configuration file name has been changed to /etc/nslcd.conf (package
  upgrade should migrate the configuration)
* updated Galician debconf translation by Marce Villarino (closes: #537424)
* patch by Petter Reinholdtsen to fix init script to start before autofs
  (closes: #544093)
* the default values for bind_timelimit and reconnect_maxsleeptime were
  lowered from 30 to 10 seconds (closes: #532874)
* upgrade to standards-version 3.8.3 (no changes needed)
* password hashes are no longer returned to non-root users (based on a patch
  by Alexander V. Chernikov)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   log.h - definitions of logging funtions
 
3
 
 
4
   Copyright (C) 2002, 2003, 2007, 2008 Arthur de Jong
 
5
 
 
6
   This library is free software; you can redistribute it and/or
 
7
   modify it under the terms of the GNU Lesser General Public
 
8
   License as published by the Free Software Foundation; either
 
9
   version 2.1 of the License, or (at your option) any later version.
 
10
 
 
11
   This library is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
   Lesser General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU Lesser General Public
 
17
   License along with this library; if not, write to the Free Software
 
18
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
19
   02110-1301 USA
 
20
*/
 
21
 
 
22
 
 
23
#ifndef _LOG_H
 
24
#define _LOG_H 1
 
25
 
 
26
 
 
27
#include <syslog.h>
 
28
#include "compat/attrs.h"
 
29
 
 
30
 
 
31
/* set loglevel when no logging is configured */
 
32
void log_setdefaultloglevel(int loglevel);
 
33
 
 
34
 
 
35
/* configure logging to a file */
 
36
void log_addlogging_file(const char *filename,int loglevel);
 
37
 
 
38
 
 
39
/* configure logging to syslog */
 
40
void log_addlogging_syslog(int loglevel);
 
41
 
 
42
 
 
43
/* configure a null logging mode (no logging) */
 
44
void log_addlogging_none(void);
 
45
 
 
46
 
 
47
/* start the logging with the configured logging methods
 
48
   if no method is configured yet, logging is done to syslog */
 
49
void log_startlogging(void);
 
50
 
 
51
 
 
52
/* indicate that a session id should be included in the output
 
53
   and set it to a new value */
 
54
void log_newsession(void);
 
55
 
 
56
 
 
57
/* log the given message using the configured logging method */
 
58
void log_log(int pri,const char *format, ...)
 
59
  LIKE_PRINTF(2,3);
 
60
 
 
61
 
 
62
/* return the syslog loglevel represented by the string
 
63
   return -1 on unknown */
 
64
int log_getloglevel(const char *lvl)
 
65
  MUST_USE;
 
66
 
 
67
 
 
68
#endif /* not _LOG_H */