5 /* Authors: Martin Quinson */
6 /* Copyright (C) 2003 the OURAGAN project. */
8 /* This program is free software; you can redistribute it and/or modify it
9 under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "gras_private.h"
13 GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(module,GRAS);
15 extern void gras_log_finalize(void);
21 gras_module_new_fct_t new;
22 gras_module_finalize_fct_t finalize;
31 * Initialize the gras mecanisms.
34 gras_init(int argc,char **argv) {
39 INFO0("Initialize GRAS");
40 for (i=1; i<argc; i++) {
41 if (!strncmp(argv[i],"--gras-log=",strlen("--gras-log="))) {
42 opt=strchr(argv[i],'=');
44 TRYFAIL(gras_log_control_set(opt));
54 * Finalize the gras mecanisms.