From e5a47d1f9a51bef0627fb6ea781ab9d8eabff605 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 7 Nov 2010 13:13:57 +0000 Subject: 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 --- nslcd/log.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nslcd/log.h') 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); -- cgit v1.2.3