Mozilla::ConsoleService - Perl interface to Mozilla nsIConsoleService


Mozilla-ConsoleService documentation  | view source Contained in the Mozilla-ConsoleService distribution.

Index


NAME

Top

Mozilla::ConsoleService - Perl interface to Mozilla nsIConsoleService

SYNOPSIS

Top

  use Mozilla::ConsoleService;

  my $handle = Mozilla::PromptService::Register(sub { print $_[0]; });

  # when no longer needed
  Mozilla::PromptService::Unregister($handle);

DESCRIPTION

Top

Mozilla::ConsoleService uses Mozilla nsIConsoleService to pass log messages to perl code, similar to JavaScript Console in Mozilla.

For more detailed documentation on nsIConsoleService see Mozilla's documentation.

METHODS

Top

Register($callback)

Registers callback to get log messages. Log messages are passed as strings.

Returns handle to be used for Unregister

Unregister($handle)

Unregisters ConsoleService listener.

SEE ALSO

Top

Mozilla nsIConsoleService documentation, Mozilla::Mechanize.

AUTHOR

Top

Boris Sukholitko, <boriss@gmail.com>

COPYRIGHT AND LICENSE

Top


Mozilla-ConsoleService documentation  | view source Contained in the Mozilla-ConsoleService distribution.