<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="cutter-CutLogger">
<refmeta>
<refentrytitle role="top_of_page" id="cutter-CutLogger.top_of_page">CutLogger</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  CUTTER Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>CutLogger</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="cutter-CutLogger.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>#define             <link linkend="cut-log">cut_log</link>                             (level,
                                                         format,
                                                         ...)
#define             <link linkend="cut-log-critical">cut_log_critical</link>                    (format,
                                                         ...)
#define             <link linkend="cut-log-error">cut_log_error</link>                       (format,
                                                         ...)
#define             <link linkend="cut-log-warning">cut_log_warning</link>                     (format,
                                                         ...)
#define             <link linkend="cut-log-message">cut_log_message</link>                     (format,
                                                         ...)
#define             <link linkend="cut-log-info">cut_log_info</link>                        (format,
                                                         ...)
#define             <link linkend="cut-log-debug">cut_log_debug</link>                       (format,
                                                         ...)
#define             <link linkend="cut-log-trace">cut_log_trace</link>                       (format,
                                                         ...)
#define             <link linkend="cut-set-log-level">cut_set_log_level</link>                   (level)
#define             <link linkend="cut-get-log-level">cut_get_log_level</link>
#define             <link linkend="cut-get-interesting-log-level">cut_get_interesting_log_level</link>
#define             <link linkend="cut-need-log">cut_need_log</link>                        (level)
#define             <link linkend="cut-need-critical-log">cut_need_critical_log</link>
#define             <link linkend="cut-need-error-log">cut_need_error_log</link>
#define             <link linkend="cut-need-warning-log">cut_need_warning_log</link>
#define             <link linkend="cut-need-message-log">cut_need_message_log</link>
#define             <link linkend="cut-need-info-log">cut_need_info_log</link>
#define             <link linkend="cut-need-debug-log">cut_need_debug_log</link>
#define             <link linkend="cut-need-trace-log">cut_need_trace_log</link>
enum                <link linkend="CutLogLevelFlags">CutLogLevelFlags</link>;
#define             <link linkend="CUT-LOG-LEVEL-ALL:CAPS">CUT_LOG_LEVEL_ALL</link>
#define             <link linkend="CUT-LOG-NULL-SAFE-STRING:CAPS">CUT_LOG_NULL_SAFE_STRING</link>            (string)
enum                <link linkend="CutLogItemFlags">CutLogItemFlags</link>;
#define             <link linkend="CUT-LOG-ITEM-ALL:CAPS">CUT_LOG_ITEM_ALL</link>
enum                <link linkend="CutLogColorize">CutLogColorize</link>;
#define             <link linkend="CUT-ENUM-ERROR:CAPS">CUT_ENUM_ERROR</link>
#define             <link linkend="CUT-FLAGS-ERROR:CAPS">CUT_FLAGS_ERROR</link>
enum                <link linkend="CutEnumError">CutEnumError</link>;
enum                <link linkend="CutFlagsError">CutFlagsError</link>;
<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="cut-enum-error-quark">cut_enum_error_quark</link>                (<parameter><type>void</type></parameter>);
<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="cut-flags-error-quark">cut_flags_error_quark</link>               (<parameter><type>void</type></parameter>);
struct              <link linkend="CutLogger">CutLogger</link>;
struct              <link linkend="CutLoggerClass">CutLoggerClass</link>;
<link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              <link linkend="cut-logger-error-quark">cut_logger_error_quark</link>              (<parameter><type>void</type></parameter>);
<link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    <link linkend="cut-log-level-flags-from-string">cut_log_level_flags_from_string</link>     (<parameter>const <link linkend="gchar"><type>gchar</type></link> *level_name</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> base_flags</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
<link linkend="CutLogItemFlags"><returnvalue>CutLogItemFlags</returnvalue></link>     <link linkend="cut-log-item-flags-from-string">cut_log_item_flags_from_string</link>      (<parameter>const <link linkend="gchar"><type>gchar</type></link> *item_name</parameter>,
                                                         <parameter><link linkend="CutLogItemFlags"><type>CutLogItemFlags</type></link> base_flags</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
<link linkend="CutLogger"><returnvalue>CutLogger</returnvalue></link> *         <link linkend="cut-logger">cut_logger</link>                          (<parameter><type>void</type></parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-default-log-handler">cut_logger_default_log_handler</link>      (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter><link linkend="GTimeVal"><type>GTimeVal</type></link> *time_value</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *message</parameter>,
                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);
<link linkend="CutLogger"><returnvalue>CutLogger</returnvalue></link> *         <link linkend="cut-logger-new">cut_logger_new</link>                      (<parameter><type>void</type></parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-log">cut_logger_log</link>                      (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *format</parameter>,
                                                         <parameter>...</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-log-va-list">cut_logger_log_va_list</link>              (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *format</parameter>,
                                                         <parameter><link linkend="va-list"><type>va_list</type></link> args</parameter>);
<link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    <link linkend="cut-logger-get-target-level">cut_logger_get_target_level</link>         (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
<link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    <link linkend="cut-logger-get-resolved-target-level">cut_logger_get_resolved_target_level</link>
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-set-target-level">cut_logger_set_target_level</link>         (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>);
<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="cut-logger-set-target-level-by-string">cut_logger_set_target_level_by_string</link>
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *level_name</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-set-interesting-level">cut_logger_set_interesting_level</link>    (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *key</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>);
<link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    <link linkend="cut-logger-get-interesting-level">cut_logger_get_interesting_level</link>    (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
<link linkend="CutLogItemFlags"><returnvalue>CutLogItemFlags</returnvalue></link>     <link linkend="cut-logger-get-target-item">cut_logger_get_target_item</link>          (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-set-target-item">cut_logger_set_target_item</link>          (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter><link linkend="CutLogItemFlags"><type>CutLogItemFlags</type></link> item</parameter>);
<link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            <link linkend="cut-logger-set-target-item-by-string">cut_logger_set_target_item_by_string</link>
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *item_name</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-connect-default-handler">cut_logger_connect_default_handler</link>  (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-logger-disconnect-default-handler">cut_logger_disconnect_default_handler</link>
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);
#define             <link linkend="CUT-GLIB-LOG-DELEGATE:CAPS">CUT_GLIB_LOG_DELEGATE</link>               (domain)
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="cut-glib-log-handler">cut_glib_log_handler</link>                (<parameter>const <link linkend="gchar"><type>gchar</type></link> *log_domain</parameter>,
                                                         <parameter><link linkend="GLogLevelFlags"><type>GLogLevelFlags</type></link> log_level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *message</parameter>,
                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);
</synopsis>
</refsynopsisdiv>

<refsect1 id="cutter-CutLogger.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>
<refsect1 id="cutter-CutLogger.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="cut-log" role="macro">
<title>cut_log()</title>
<indexterm zone="cut-log"><primary>cut_log</primary></indexterm>
<programlisting>#define             cut_log(level, format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-critical" role="macro">
<title>cut_log_critical()</title>
<indexterm zone="cut-log-critical"><primary>cut_log_critical</primary></indexterm>
<programlisting>#define             cut_log_critical(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-error" role="macro">
<title>cut_log_error()</title>
<indexterm zone="cut-log-error"><primary>cut_log_error</primary></indexterm>
<programlisting>#define             cut_log_error(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-warning" role="macro">
<title>cut_log_warning()</title>
<indexterm zone="cut-log-warning"><primary>cut_log_warning</primary></indexterm>
<programlisting>#define             cut_log_warning(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-message" role="macro">
<title>cut_log_message()</title>
<indexterm zone="cut-log-message"><primary>cut_log_message</primary></indexterm>
<programlisting>#define             cut_log_message(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-info" role="macro">
<title>cut_log_info()</title>
<indexterm zone="cut-log-info"><primary>cut_log_info</primary></indexterm>
<programlisting>#define             cut_log_info(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-debug" role="macro">
<title>cut_log_debug()</title>
<indexterm zone="cut-log-debug"><primary>cut_log_debug</primary></indexterm>
<programlisting>#define             cut_log_debug(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-trace" role="macro">
<title>cut_log_trace()</title>
<indexterm zone="cut-log-trace"><primary>cut_log_trace</primary></indexterm>
<programlisting>#define             cut_log_trace(format, ...)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-set-log-level" role="macro">
<title>cut_set_log_level()</title>
<indexterm zone="cut-set-log-level"><primary>cut_set_log_level</primary></indexterm>
<programlisting>#define             cut_set_log_level(level)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-get-log-level" role="macro">
<title>cut_get_log_level</title>
<indexterm zone="cut-get-log-level"><primary>cut_get_log_level</primary></indexterm>
<programlisting>#define             cut_get_log_level()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-get-interesting-log-level" role="macro">
<title>cut_get_interesting_log_level</title>
<indexterm zone="cut-get-interesting-log-level"><primary>cut_get_interesting_log_level</primary></indexterm>
<programlisting>#define             cut_get_interesting_log_level()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-log" role="macro">
<title>cut_need_log()</title>
<indexterm zone="cut-need-log"><primary>cut_need_log</primary></indexterm>
<programlisting>#define             cut_need_log(level)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-critical-log" role="macro">
<title>cut_need_critical_log</title>
<indexterm zone="cut-need-critical-log"><primary>cut_need_critical_log</primary></indexterm>
<programlisting>#define             cut_need_critical_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-error-log" role="macro">
<title>cut_need_error_log</title>
<indexterm zone="cut-need-error-log"><primary>cut_need_error_log</primary></indexterm>
<programlisting>#define             cut_need_error_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-warning-log" role="macro">
<title>cut_need_warning_log</title>
<indexterm zone="cut-need-warning-log"><primary>cut_need_warning_log</primary></indexterm>
<programlisting>#define             cut_need_warning_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-message-log" role="macro">
<title>cut_need_message_log</title>
<indexterm zone="cut-need-message-log"><primary>cut_need_message_log</primary></indexterm>
<programlisting>#define             cut_need_message_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-info-log" role="macro">
<title>cut_need_info_log</title>
<indexterm zone="cut-need-info-log"><primary>cut_need_info_log</primary></indexterm>
<programlisting>#define             cut_need_info_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-debug-log" role="macro">
<title>cut_need_debug_log</title>
<indexterm zone="cut-need-debug-log"><primary>cut_need_debug_log</primary></indexterm>
<programlisting>#define             cut_need_debug_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-need-trace-log" role="macro">
<title>cut_need_trace_log</title>
<indexterm zone="cut-need-trace-log"><primary>cut_need_trace_log</primary></indexterm>
<programlisting>#define             cut_need_trace_log()</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutLogLevelFlags" role="enum">
<title>enum CutLogLevelFlags</title>
<indexterm zone="CutLogLevelFlags"><primary>CutLogLevelFlags</primary></indexterm>
<programlisting>typedef enum {
    CUT_LOG_LEVEL_DEFAULT    = 0,
    CUT_LOG_LEVEL_NONE       = 1 &lt;&lt; 0,
    CUT_LOG_LEVEL_CRITICAL   = 1 &lt;&lt; 1,
    CUT_LOG_LEVEL_ERROR      = 1 &lt;&lt; 2,
    CUT_LOG_LEVEL_WARNING    = 1 &lt;&lt; 3,
    CUT_LOG_LEVEL_MESSAGE    = 1 &lt;&lt; 4,
    CUT_LOG_LEVEL_INFO       = 1 &lt;&lt; 5,
    CUT_LOG_LEVEL_DEBUG      = 1 &lt;&lt; 6,
    CUT_LOG_LEVEL_TRACE      = 1 &lt;&lt; 7
} CutLogLevelFlags;
</programlisting>
<para>
</para><variablelist role="enum">
<varlistentry id="CUT-LOG-LEVEL-DEFAULT:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_DEFAULT</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-NONE:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_NONE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-CRITICAL:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_CRITICAL</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-ERROR:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_ERROR</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-WARNING:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_WARNING</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-MESSAGE:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_MESSAGE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-INFO:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_INFO</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-DEBUG:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_DEBUG</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-LEVEL-TRACE:CAPS" role="constant">
<term><literal>CUT_LOG_LEVEL_TRACE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="CUT-LOG-LEVEL-ALL:CAPS" role="macro">
<title>CUT_LOG_LEVEL_ALL</title>
<indexterm zone="CUT-LOG-LEVEL-ALL:CAPS"><primary>CUT_LOG_LEVEL_ALL</primary></indexterm>
<programlisting>#define             CUT_LOG_LEVEL_ALL</programlisting>
<para>
</para></refsect2>
<refsect2 id="CUT-LOG-NULL-SAFE-STRING:CAPS" role="macro">
<title>CUT_LOG_NULL_SAFE_STRING()</title>
<indexterm zone="CUT-LOG-NULL-SAFE-STRING:CAPS"><primary>CUT_LOG_NULL_SAFE_STRING</primary></indexterm>
<programlisting>#define CUT_LOG_NULL_SAFE_STRING(string) ((string) ? (string) : "(null)")
</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutLogItemFlags" role="enum">
<title>enum CutLogItemFlags</title>
<indexterm zone="CutLogItemFlags"><primary>CutLogItemFlags</primary></indexterm>
<programlisting>typedef enum {
    CUT_LOG_ITEM_DEFAULT     = 0,
    CUT_LOG_ITEM_NONE        = 1 &lt;&lt; 0,
    CUT_LOG_ITEM_DOMAIN      = 1 &lt;&lt; 1,
    CUT_LOG_ITEM_LEVEL       = 1 &lt;&lt; 2,
    CUT_LOG_ITEM_LOCATION    = 1 &lt;&lt; 3,
    CUT_LOG_ITEM_TIME        = 1 &lt;&lt; 4,
    CUT_LOG_ITEM_NAME        = 1 &lt;&lt; 5,
    CUT_LOG_ITEM_PID         = 1 &lt;&lt; 6
} CutLogItemFlags;
</programlisting>
<para>
</para><variablelist role="enum">
<varlistentry id="CUT-LOG-ITEM-DEFAULT:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_DEFAULT</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-NONE:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_NONE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-DOMAIN:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_DOMAIN</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-LEVEL:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_LEVEL</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-LOCATION:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_LOCATION</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-TIME:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_TIME</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-NAME:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_NAME</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-ITEM-PID:CAPS" role="constant">
<term><literal>CUT_LOG_ITEM_PID</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="CUT-LOG-ITEM-ALL:CAPS" role="macro">
<title>CUT_LOG_ITEM_ALL</title>
<indexterm zone="CUT-LOG-ITEM-ALL:CAPS"><primary>CUT_LOG_ITEM_ALL</primary></indexterm>
<programlisting>#define             CUT_LOG_ITEM_ALL</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutLogColorize" role="enum">
<title>enum CutLogColorize</title>
<indexterm zone="CutLogColorize"><primary>CutLogColorize</primary></indexterm>
<programlisting>typedef enum {
    CUT_LOG_COLORIZE_DEFAULT,
    CUT_LOG_COLORIZE_NONE,
    CUT_LOG_COLORIZE_CONSOLE
} CutLogColorize;
</programlisting>
<para>
</para><variablelist role="enum">
<varlistentry id="CUT-LOG-COLORIZE-DEFAULT:CAPS" role="constant">
<term><literal>CUT_LOG_COLORIZE_DEFAULT</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-COLORIZE-NONE:CAPS" role="constant">
<term><literal>CUT_LOG_COLORIZE_NONE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-LOG-COLORIZE-CONSOLE:CAPS" role="constant">
<term><literal>CUT_LOG_COLORIZE_CONSOLE</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="CUT-ENUM-ERROR:CAPS" role="macro">
<title>CUT_ENUM_ERROR</title>
<indexterm zone="CUT-ENUM-ERROR:CAPS"><primary>CUT_ENUM_ERROR</primary></indexterm>
<programlisting>#define CUT_ENUM_ERROR           (cut_enum_error_quark())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="CUT-FLAGS-ERROR:CAPS" role="macro">
<title>CUT_FLAGS_ERROR</title>
<indexterm zone="CUT-FLAGS-ERROR:CAPS"><primary>CUT_FLAGS_ERROR</primary></indexterm>
<programlisting>#define CUT_FLAGS_ERROR          (cut_flags_error_quark())
</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutEnumError" role="enum">
<title>enum CutEnumError</title>
<indexterm zone="CutEnumError"><primary>CutEnumError</primary></indexterm>
<programlisting>typedef enum {
    CUT_ENUM_ERROR_NULL_NAME,
    CUT_ENUM_ERROR_UNKNOWN_NAME
} CutEnumError;
</programlisting>
<para>
</para><variablelist role="enum">
<varlistentry id="CUT-ENUM-ERROR-NULL-NAME:CAPS" role="constant">
<term><literal>CUT_ENUM_ERROR_NULL_NAME</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-ENUM-ERROR-UNKNOWN-NAME:CAPS" role="constant">
<term><literal>CUT_ENUM_ERROR_UNKNOWN_NAME</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="CutFlagsError" role="enum">
<title>enum CutFlagsError</title>
<indexterm zone="CutFlagsError"><primary>CutFlagsError</primary></indexterm>
<programlisting>typedef enum {
    CUT_FLAGS_ERROR_NULL_NAME,
    CUT_FLAGS_ERROR_UNKNOWN_NAMES
} CutFlagsError;
</programlisting>
<para>
</para><variablelist role="enum">
<varlistentry id="CUT-FLAGS-ERROR-NULL-NAME:CAPS" role="constant">
<term><literal>CUT_FLAGS_ERROR_NULL_NAME</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
<varlistentry id="CUT-FLAGS-ERROR-UNKNOWN-NAMES:CAPS" role="constant">
<term><literal>CUT_FLAGS_ERROR_UNKNOWN_NAMES</literal></term>
<listitem><simpara>
</simpara></listitem>
</varlistentry>
</variablelist></refsect2>
<refsect2 id="cut-enum-error-quark" role="function">
<title>cut_enum_error_quark ()</title>
<indexterm zone="cut-enum-error-quark"><primary>cut_enum_error_quark</primary></indexterm>
<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              cut_enum_error_quark                (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-flags-error-quark" role="function">
<title>cut_flags_error_quark ()</title>
<indexterm zone="cut-flags-error-quark"><primary>cut_flags_error_quark</primary></indexterm>
<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              cut_flags_error_quark               (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutLogger" role="struct">
<title>struct CutLogger</title>
<indexterm zone="CutLogger"><primary>CutLogger</primary></indexterm>
<programlisting>struct CutLogger {
    GObject object;
};
</programlisting>
<para>
</para></refsect2>
<refsect2 id="CutLoggerClass" role="struct">
<title>struct CutLoggerClass</title>
<indexterm zone="CutLoggerClass"><primary>CutLoggerClass</primary></indexterm>
<programlisting>struct CutLoggerClass {
    GObjectClass parent_class;

    void (*log) (CutLogger        *logger,
                 const gchar      *domain,
                 CutLogLevelFlags  level,
                 const gchar      *file,
                 guint             line,
                 const gchar      *function,
                 GTimeVal         *time_value,
                 const gchar      *message);
};
</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-error-quark" role="function">
<title>cut_logger_error_quark ()</title>
<indexterm zone="cut-logger-error-quark"><primary>cut_logger_error_quark</primary></indexterm>
<programlisting><link linkend="GQuark"><returnvalue>GQuark</returnvalue></link>              cut_logger_error_quark              (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-level-flags-from-string" role="function">
<title>cut_log_level_flags_from_string ()</title>
<indexterm zone="cut-log-level-flags-from-string"><primary>cut_log_level_flags_from_string</primary></indexterm>
<programlisting><link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    cut_log_level_flags_from_string     (<parameter>const <link linkend="gchar"><type>gchar</type></link> *level_name</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> base_flags</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-log-item-flags-from-string" role="function">
<title>cut_log_item_flags_from_string ()</title>
<indexterm zone="cut-log-item-flags-from-string"><primary>cut_log_item_flags_from_string</primary></indexterm>
<programlisting><link linkend="CutLogItemFlags"><returnvalue>CutLogItemFlags</returnvalue></link>     cut_log_item_flags_from_string      (<parameter>const <link linkend="gchar"><type>gchar</type></link> *item_name</parameter>,
                                                         <parameter><link linkend="CutLogItemFlags"><type>CutLogItemFlags</type></link> base_flags</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger" role="function">
<title>cut_logger ()</title>
<indexterm zone="cut-logger"><primary>cut_logger</primary></indexterm>
<programlisting><link linkend="CutLogger"><returnvalue>CutLogger</returnvalue></link> *         cut_logger                          (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-default-log-handler" role="function">
<title>cut_logger_default_log_handler ()</title>
<indexterm zone="cut-logger-default-log-handler"><primary>cut_logger_default_log_handler</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_default_log_handler      (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter><link linkend="GTimeVal"><type>GTimeVal</type></link> *time_value</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *message</parameter>,
                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-new" role="function">
<title>cut_logger_new ()</title>
<indexterm zone="cut-logger-new"><primary>cut_logger_new</primary></indexterm>
<programlisting><link linkend="CutLogger"><returnvalue>CutLogger</returnvalue></link> *         cut_logger_new                      (<parameter><type>void</type></parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-log" role="function">
<title>cut_logger_log ()</title>
<indexterm zone="cut-logger-log"><primary>cut_logger_log</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_log                      (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *format</parameter>,
                                                         <parameter>...</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-log-va-list" role="function">
<title>cut_logger_log_va_list ()</title>
<indexterm zone="cut-logger-log-va-list"><primary>cut_logger_log_va_list</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_log_va_list              (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *domain</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *file</parameter>,
                                                         <parameter><link linkend="guint"><type>guint</type></link> line</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *function</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *format</parameter>,
                                                         <parameter><link linkend="va-list"><type>va_list</type></link> args</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-get-target-level" role="function">
<title>cut_logger_get_target_level ()</title>
<indexterm zone="cut-logger-get-target-level"><primary>cut_logger_get_target_level</primary></indexterm>
<programlisting><link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    cut_logger_get_target_level         (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-get-resolved-target-level" role="function">
<title>cut_logger_get_resolved_target_level ()</title>
<indexterm zone="cut-logger-get-resolved-target-level"><primary>cut_logger_get_resolved_target_level</primary></indexterm>
<programlisting><link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    cut_logger_get_resolved_target_level
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-set-target-level" role="function">
<title>cut_logger_set_target_level ()</title>
<indexterm zone="cut-logger-set-target-level"><primary>cut_logger_set_target_level</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_set_target_level         (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-set-target-level-by-string" role="function">
<title>cut_logger_set_target_level_by_string ()</title>
<indexterm zone="cut-logger-set-target-level-by-string"><primary>cut_logger_set_target_level_by_string</primary></indexterm>
<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            cut_logger_set_target_level_by_string
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *level_name</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-set-interesting-level" role="function">
<title>cut_logger_set_interesting_level ()</title>
<indexterm zone="cut-logger-set-interesting-level"><primary>cut_logger_set_interesting_level</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_set_interesting_level    (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *key</parameter>,
                                                         <parameter><link linkend="CutLogLevelFlags"><type>CutLogLevelFlags</type></link> level</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-get-interesting-level" role="function">
<title>cut_logger_get_interesting_level ()</title>
<indexterm zone="cut-logger-get-interesting-level"><primary>cut_logger_get_interesting_level</primary></indexterm>
<programlisting><link linkend="CutLogLevelFlags"><returnvalue>CutLogLevelFlags</returnvalue></link>    cut_logger_get_interesting_level    (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-get-target-item" role="function">
<title>cut_logger_get_target_item ()</title>
<indexterm zone="cut-logger-get-target-item"><primary>cut_logger_get_target_item</primary></indexterm>
<programlisting><link linkend="CutLogItemFlags"><returnvalue>CutLogItemFlags</returnvalue></link>     cut_logger_get_target_item          (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-set-target-item" role="function">
<title>cut_logger_set_target_item ()</title>
<indexterm zone="cut-logger-set-target-item"><primary>cut_logger_set_target_item</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_set_target_item          (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter><link linkend="CutLogItemFlags"><type>CutLogItemFlags</type></link> item</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-set-target-item-by-string" role="function">
<title>cut_logger_set_target_item_by_string ()</title>
<indexterm zone="cut-logger-set-target-item-by-string"><primary>cut_logger_set_target_item_by_string</primary></indexterm>
<programlisting><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>            cut_logger_set_target_item_by_string
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *item_name</parameter>,
                                                         <parameter><link linkend="GError"><type>GError</type></link> **error</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-connect-default-handler" role="function">
<title>cut_logger_connect_default_handler ()</title>
<indexterm zone="cut-logger-connect-default-handler"><primary>cut_logger_connect_default_handler</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_connect_default_handler  (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-logger-disconnect-default-handler" role="function">
<title>cut_logger_disconnect_default_handler ()</title>
<indexterm zone="cut-logger-disconnect-default-handler"><primary>cut_logger_disconnect_default_handler</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_logger_disconnect_default_handler
                                                        (<parameter><link linkend="CutLogger"><type>CutLogger</type></link> *logger</parameter>);</programlisting>
<para>
</para></refsect2>
<refsect2 id="CUT-GLIB-LOG-DELEGATE:CAPS" role="macro">
<title>CUT_GLIB_LOG_DELEGATE()</title>
<indexterm zone="CUT-GLIB-LOG-DELEGATE:CAPS"><primary>CUT_GLIB_LOG_DELEGATE</primary></indexterm>
<programlisting>#define             CUT_GLIB_LOG_DELEGATE(domain)</programlisting>
<para>
</para></refsect2>
<refsect2 id="cut-glib-log-handler" role="function">
<title>cut_glib_log_handler ()</title>
<indexterm zone="cut-glib-log-handler"><primary>cut_glib_log_handler</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                cut_glib_log_handler                (<parameter>const <link linkend="gchar"><type>gchar</type></link> *log_domain</parameter>,
                                                         <parameter><link linkend="GLogLevelFlags"><type>GLogLevelFlags</type></link> log_level</parameter>,
                                                         <parameter>const <link linkend="gchar"><type>gchar</type></link> *message</parameter>,
                                                         <parameter><link linkend="gpointer"><type>gpointer</type></link> user_data</parameter>);</programlisting>
<para>
</para></refsect2>

</refsect1>

</refentry>
