Business::Cart::Generic::Logger - Basic shopping cart


See Business::Cart::Generic.


Business::Cart::Generic implements parts of osCommerce and PrestaShop in Perl.


See Business::Cart::Generic.

Constructor and Initialization


This class has no parents.

Using new()

new() is called as my($obj) = Business::Cart::Generic::Util::Logger -> new(k1 => v1, k2 => v2, ...).

It returns a new object of type Business::Cart::Generic::Util::Logger.

Key-value pairs accepted in the parameter list:

o config => $config

This takes an object of type Business::Cart::Generic::Util::Config.

This key => value pair is mandatory.

These keys are also getter-type methods.


log($level, $s)

$level is a value recognized by Log::Handler. $s is a string to write to the log table in the database.

A datestamp is added automatically. See the source code of Business::Cart::Generic::Database::Create for the definition of the log table.

Typical values for $level are 'debug', 'error' and 'info'.

Machine-Readable Change Log

The file CHANGES was converted into Changelog.ini by Module::Metadata::Changes.

Version Numbers

Version numbers < 1.00 represent development versions. From 1.00 up, they are production versions.


Many thanks are due to the people who chose to make osCommerce and PrestaShop, Zen Cart, etc, Open Source.


Email the author, or log a bug on RT:


Business::Cart::Generic was written by Ron Savage <> in 2011.

Home page:


Australian copyright (c) 2011, Ron Savage.

        All Programs of mine are 'OSI Certified Open Source Software';
        you can redistribute them and/or modify them under the terms of
        The Artistic License, a copy of which is available at: