File/plugins/logger/functions.php

Description

NaSMail Logger plugin - functions Copyright (c) 2009 The NaSMail Project

This file is part of NaSMail Logger plugin.

Logger plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Logger plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Logger plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 1467 2009-11-04 07:47:52Z tokul $
Includes
 include_once (SM_PATH.'config/logger_config.php') (line 38)

Load site configuration

 include_once (SM_PATH.'plugins/logger/config.php') (line 40)
Functions
logger_get_user_info (line 88)

Gets information about user

Function tries to detect username, remote address and proxy headers

Used output formats: USER detected-username FROM detected-address USER detected-username FROM detected-address PROXIED detected-proxied-address

string logger_get_user_info ()
logger_log (line 116)

Calls configured logging facility

void logger_log ( $category, string $msg, integer $level)
  • string $msg
  • integer $level
  • $category
logger_login_verified_do (line 46)

Logs successful logins. LOG_INFO level

void logger_login_verified_do ()
logger_logout_do (line 54)

Logs logouts. LOG_INFO level

void logger_logout_do ()
logger_logout_error_do (line 63)

Logs login failures. LOG_WARNING level

void logger_logout_error_do (array $args)
  • array $args: hook arguments
logger_message_log_do (line 73)

Logs nsm_message_log() messages. LOG_NOTICE level

void logger_message_log_do (array $args)
  • array $args: hook arguments

Documentation generated on Sun, 22 Nov 2009 17:36:32 +0200 by phpDocumentor 1.4.3