GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Glib::Log(3) User Contributed Perl Documentation Glib::Log(3)

Glib::Log - A flexible logging mechanism

$fatal_mask (scalar)

  • $domain (string or undef)
  • $message (string)

  • $domain (string or undef)
  • $message (string)

  • $log_domain (string)
  • $log_level (scalar)
  • $message (string)
  • ... (list) possible "userdata" argument ignored

The arguments are the same as taken by the function for set_handler or set_default_handler.

  • $log_func (subroutine) handler function or undef
  • $user_data (scalar)

Install log_func as the default log handler. log_func is called for anything which doesn't otherwise have a handler (either Glib::Log->set_handler, or the Glib::xsapi gperl_handle_logs_for),

    &$log_func ($log_domain, $log_levels, $message, $user_data)

where $log_domain is a string, and $log_levels is a Glib::LogLevelFlags of level and flags being reported.

If log_func is \&Glib::Log::default_handler or undef then Glib's default handler is set.

The return value from "set_default_handler" is the previous handler. This is \&Glib::Log::default_handler for Glib's default, otherwise a Perl function previously installed. If the handler is some other non-Perl function then currently the return is undef, but perhaps that will change to some wrapped thing, except that without associated userdata there's very little which could be done with it (it couldn't be reinstalled later without its userdata).

Since: glib 2.6

  • $domain (string or undef)
  • $message (string)

  • $log_domain (string)
  • $fatal_mask (scalar)

  • $log_domain (string or undef) name of the domain to handle with this callback.
  • $log_levels (Glib::LogLevelFlags) log levels to handle with this callback
  • $log_func (subroutine) handler function
  • $user_data (scalar)

$log_func will be called as

    &$log_func ($log_domain, $log_levels, $message, $user_data);

where $log_domain is the name requested and $log_levels is a Glib::LogLevelFlags of level and flags being reported.

  • $domain (string or undef)
  • $message (string)

  • $log_domain (string or undef)
  • $log_level (scalar)
  • $message (string)

  • $domain (string or undef)
  • $message (string)

  • $log_domain (string or undef)
  • $handler_id (integer) as returned by "set_handler"

  • $domain (string or undef)
  • $message (string)

  • 'recursion' / 'G_LOG_FLAG_RECURSION'
  • 'fatal' / 'G_LOG_FLAG_FATAL'
  • 'error' / 'G_LOG_LEVEL_ERROR'
  • 'critical' / 'G_LOG_LEVEL_CRITICAL'
  • 'warning' / 'G_LOG_LEVEL_WARNING'
  • 'message' / 'G_LOG_LEVEL_MESSAGE'
  • 'info' / 'G_LOG_LEVEL_INFO'
  • 'debug' / 'G_LOG_LEVEL_DEBUG'
  • 'fatal-mask' / 'G_LOG_FATAL_MASK'

Glib

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Glib for a full notice.

2022-04-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.