/* OGMJob - A library to spawn processes
 * Copyright (C) 2004-2012 Olivier Rolland <billl@users.sourceforge.net>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef __OGMJOB_LOG_H__
#define __OGMJOB_LOG_H__

#include <glib.h>

G_BEGIN_DECLS

gboolean ogmjob_log_open             (const gchar *filename,
                                      GError      **error);
gboolean ogmjob_log_close            (GError      **error);

void     ogmjob_log_write            (const gchar *str);
void     ogmjob_log_printf           (const gchar *format,
                                      ...) G_GNUC_PRINTF (1, 2);

void     ogmjob_log_set_print_stdout (gboolean    log_stdout);
gboolean ogmjob_log_get_print_stdout (void);

void     ogmjob_log_set_print_stderr (gboolean    log_stderr);
gboolean ogmjob_log_get_print_stderr (void);

G_END_DECLS

#endif /* __OGMJOB_LOG_H__ */

