Log4gQuietWriter

Log4gQuietWriter — Write to a stdio(3) stream

Synopsis

                    Log4gQuietWriter;
                    Log4gQuietWriterClass;
void                log4g_quiet_writer_close            (Log4gQuietWriter *self);
void                log4g_quiet_writer_flush            (Log4gQuietWriter *self);
Log4gQuietWriter *  log4g_quiet_writer_new              (FILE *file,
                                                         gpointer error);
void                log4g_quiet_writer_set_error_handler
                                                        (Log4gQuietWriter *self,
                                                         gpointer error);
void                log4g_quiet_writer_set_file         (Log4gQuietWriter *self,
                                                         FILE *file);
void                log4g_quiet_writer_write            (Log4gQuietWriter *self,
                                                         const char *string);
void                (*Log4gQuietWriterWrite)            (Log4gQuietWriter *self,
                                                         const gchar *string);

Description

The quiet writer class handles errors via an error handler.

See: Log4gErrorHandlerInterface

Details

Log4gQuietWriter

typedef struct {
} Log4gQuietWriter;

The Log4gQuietWriter structure does not have any public members.


Log4gQuietWriterClass

typedef struct {
    Log4gQuietWriterWrite write;
} Log4gQuietWriterClass;

Log4gQuietWriterWrite write;

Write to a stdio(3) stream.

log4g_quiet_writer_close ()

void                log4g_quiet_writer_close            (Log4gQuietWriter *self);

Close the stdio(3) stream held by a quiet writer object.

See: stdio(3)

self :

A quiet writer object.

Since 0.1


log4g_quiet_writer_flush ()

void                log4g_quiet_writer_flush            (Log4gQuietWriter *self);

Flush the stdio(3) stream.

See: stdio(3)

self :

A quiet writer object.

Since 0.1


log4g_quiet_writer_new ()

Log4gQuietWriter *  log4g_quiet_writer_new              (FILE *file,
                                                         gpointer error);

Create a new quiet writer object.

See: stdio(3)

file :

An open stdio(3) stream.

error :

The error handler to use.

Returns :

A new quiet writer object.

Since 0.1


log4g_quiet_writer_set_error_handler ()

void                log4g_quiet_writer_set_error_handler
                                                        (Log4gQuietWriter *self,
                                                         gpointer error);

Set the error handler for a quiet writer.

See: Log4gErrorHandlerInterface

self :

A quiet writer object.

error :

A new error handler for self.

Since 0.1


log4g_quiet_writer_set_file ()

void                log4g_quiet_writer_set_file         (Log4gQuietWriter *self,
                                                         FILE *file);

Set the stdio(3) stream to write to.

See: stdio(3)

self :

A quiet writer object.

file :

An open stdio(3) stream.

Since 0.1


log4g_quiet_writer_write ()

void                log4g_quiet_writer_write            (Log4gQuietWriter *self,
                                                         const char *string);

Call the write function from the Log4gQuietWriterClass of self.

self :

A quiet writer object.

string :

The string to write.

Since 0.1


Log4gQuietWriterWrite ()

void                (*Log4gQuietWriterWrite)            (Log4gQuietWriter *self,
                                                         const gchar *string);

Write a string to a stdio(3) stream.

self :

A quiet writer object.

string :

The string to write.

Since 0.1