CamelIMAPXLogger

CamelIMAPXLogger — Log input/output streams

Synopsis

#include <camel-imapx-logger.h>

struct              CamelIMAPXLogger;
GConverter *        camel_imapx_logger_new              (gchar prefix);
gchar               camel_imapx_logger_get_prefix       (CamelIMAPXLogger *logger);

Object Hierarchy

  GObject
   +----CamelIMAPXLogger

Implemented Interfaces

CamelIMAPXLogger implements GConverter.

Properties

  "prefix"                   gchar                 : Read / Write / Construct Only

Description

CamelIMAPXLogger is a simple GConverter that just echos data to standard output if the I/O debugging setting is enabled ('CAMEL_DEBUG=imapx:io'). Attaches to the GInputStream and GOutputStream.

Details

struct CamelIMAPXLogger

struct CamelIMAPXLogger;

Contains only private data that should be read and manipulated using the functions below.

Since 3.12


camel_imapx_logger_new ()

GConverter *        camel_imapx_logger_new              (gchar prefix);

Creates a new CamelIMAPXLogger. Each output line generated by the logger will have a prefix string that includes the prefix character to distinguish it from other active loggers.

prefix :

a prefix character

Returns :

a CamelIMAPXLogger

Since 3.12


camel_imapx_logger_get_prefix ()

gchar               camel_imapx_logger_get_prefix       (CamelIMAPXLogger *logger);

Returns the prefix character passed to camel_imapx_logger_new().

logger :

a CamelIMAPXLogger

Returns :

the prefix character

Since 3.12

Property Details

The "prefix" property

  "prefix"                   gchar                 : Read / Write / Construct Only

Output prefix to distinguish connections.

Allowed values: >= 32

Default value: 42