Wx::DBI::Logger - a logging helper class


NAME

Wx::DBI::Form::Logger - a logging helper class

Back to Top


SYNOPSIS

use Wx::DBI::Form::Logger

Back to Top


DESCRIPTION

Wx::DBI::Form::Logger that helps by providing consolidated logging functionality.

Back to Top


FUNCTIONS

xget_log()
Functionality:

If the log has not already been created, figure out where the log (for warnings and, if debugging is enabled, debugging messages) should go, and create it. It searches a variety directory, including some which can be specified by the environment variables TMP, TMPDIR, or TEMP. A random-ish file name is safely created and the file is opened for writing.

If the log was already previously created, then none of this stuff is done.

In any case, a new Log::Handler object is returned.

Return value:

A new Log::Handler object.

debug($msg)
Parameters:

$msg is the string to send to the log.

Functionality:

Logs message at the debug level.

Return value:

None.

info($msg)
Parameters:

$msg is the string to send to the log.

Functionality:

Logs message at the info level.

Return value:

None.

warning($msg)
Parameters:

$msg is the string to send to the log.

Functionality:

Logs message at the warning level.

Return value:

None.

emergency($msg)
Parameters:

$msg is the string to send to the log.

Functionality:

Logs message at the emergency level.

Return value:

None.

Back to Top


AUTHORS

Doug Breshears <doug@jshfarms.com>
Roberto C. Sanchez <roberto@connexer.com>

Back to Top


BUGS

No known bugs.

Back to Top


SEE ALSO

README

Back to Top


COPYRIGHT

Copyright 2008 JSH Farms, Inc.

Wx::DBI 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 3 of the License, or (at your option) any later version, or under the terms of the Artistic License as published by the Perl Foundation, either version 2.0 of the license, or (at your option) any later version.

Wx::DBI 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 or the Artistic License for more details.

You should have received a copy of the GNU General Public License and a copy of the Artistic License along with Wx::DBI. If not, see <http://www.gnu.org/licenses/> and <http://www.perlfoundation.org/artistic_license_2_0>, respectively.

Back to Top

 Wx::DBI::Logger - a logging helper class