Maxscape::Message Package

Synopsis

use Maxscape::Message;
use Maxscape::Message::Generic;
use Maxscape::HTTP::Status;

Description

This package defines the messages print to STDERR for logging and debugging purposes. The log messages are defined in the file:

/maxscape/lib/WebServer-1.00/Maxscape/Message/Generic.pm

List of Member Functions

  1. main::_id
  2. main::_log
  3. main::dieFatal
  4. main::HTTP_Style_http_date
  5. main::HTTP_Style_log_request_Format
  6. main::Log
  7. main::LogError
  8. main::LogType
  9. main::printFatal

Member Functions

main::printFatal

Synopsis

main::printFatal ($MessageName [, $MsgAttrib1, $MsgAttrib2 ]);

Description

Prints a fatal error to STDOUT.

Examples

&::printFatal ('ProcessInitialisationError');

main::dieFatal

Synopsis

main::dieFatal ($MessageName [, $MsgAttrib1, $MsgAttrib2 ]);

Description

Prints a fatal error to STDOUT and exits process.

Examples

&::dieFatal ('openFileFailure', $ConfigureFile, $!);

main::LogError

Synopsis

main::LogError ($MessageName, $MessageText);

Description

Prints an error to STDOUT.

Examples

&::LogError ('UserData.UserLoginRequest', $ErrorText);

main::LogType

Synopsis

main::LogType ($LogType);

Description

Prints a log type message to stdout.

Examples

&::LogType ('Launch', 'Process.EnterMainLoop', 'Try -->>');
&::LogType ('Done', 'Process.LeaveMainLoop', 'done <<--');

main::Log

Synopsis

main::LogType ($MessageName, $MessageText);

Description

Prints a log message to stdout.

Examples

$::Debug && &::Log ('Context.ContextCallback', $CallbackName);

main::_id

Synopsis

my ($pack, $file, $line, $sub, $id) = main::_id ($Level);

Description

Returns information about the context.

Examples

&::dieFatal ('openFileFailure', $ConfigureFile, $!);

main::_log

Synopsis

main::_id ($Level);

Description

Actuall prints an error to STDOUT.

main::HTTP_Style_http_date

Synopsis

main::HTTP_Style_http_date (@tm);

Description

Returns a date and time string.

Examples

my $DateAsString = &::HTTP_Style_http_date (@tm);

main::HTTP_Style_log_request_Format

Synopsis

main::HTTP_Style_log_request_Format ($RequestTime);

Description

Returns a date and time string.

Examples

my $DateAsString = &::HTTP_Style_log_request_Format ($RequestTime);
1
Next ∙ Previous ∙ Top ∙ Join ∙ Contact © Maxscape