diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-11-07 14:13:57 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-11-07 14:13:57 +0100 |
commit | e5a47d1f9a51bef0627fb6ea781ab9d8eabff605 (patch) | |
tree | 33ca5b9033dfe7a407b74491bc1f99cb7593cabc /nslcd/log.h | |
parent | e6b501c5eeb3ab94df4109fff62c418aadeb4ad0 (diff) |
log the request with any logged messages
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1301 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/log.h')
-rw-r--r-- | nslcd/log.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nslcd/log.h b/nslcd/log.h index 3fa3d23..a979fb2 100644 --- a/nslcd/log.h +++ b/nslcd/log.h @@ -1,7 +1,7 @@ /* log.h - definitions of logging funtions - Copyright (C) 2002, 2003, 2007, 2008 Arthur de Jong + Copyright (C) 2002, 2003, 2007, 2008, 2010 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -54,6 +54,12 @@ void log_startlogging(void); void log_newsession(void); +/* indicate that a request identifier should be included in the output + from this point on, until log_newsession() is called */ +void log_setrequest(const char *format, ...) + LIKE_PRINTF(1,2); + + /* log the given message using the configured logging method */ void log_log(int pri,const char *format, ...) LIKE_PRINTF(2,3); |