log.c File Reference

parallel safe version of fprintf for logging More...

#include "common.h"
#include <stdio.h>
#include <ctype.h>
#include "machine.h"
#include "bu.h"

Include dependency graph for log.c:

Go to the source code of this file.

Functions

void bu_log_indent_delta (int delta)
void bu_log_indent_vls (struct bu_vls *v)
void bu_log_add_hook (bu_hook_t func, genptr_t clientdata)
void bu_log_delete_hook (bu_hook_t func, genptr_t clientdata)
HIDDEN void bu_log_call_hooks (genptr_t buf)
HIDDEN void bu_log_do_indent_level (struct bu_vls *new, register char *old)
void bu_putchar (int c)
void bu_log (char *fmt, a, b, c, d, e, f, g, h, i, j)
void bu_flog (FILE *fp, char *fmt, a, b, c, d, e, f, g, h, i, j)

Variables

bu_hook_list bu_log_hook_list


Detailed Description

parallel safe version of fprintf for logging

BRL-CAD support library, error logging routine. Note that the user may provide his own logging routine, by replacing these functions. That is why this is in file of it's own. For example, LGT and RTSRV take advantage of this.

Primary Functions (replacements MUST implement all these) -

bu_log Called to log library events.
bu_log_indent_delta Change global indentation level
bu_log_indent_vls Apply indentation level (used by librt/pr.c)
Specialty Functions -
bu_log_add_hook Start catching log events (used by mged/cmd.c)
bu_putchar
Author:
Michael John Muuss

Glenn Durfee

Source -
The U. S. Army Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5068 USA

Definition in file log.c.


Generated on Mon Sep 18 01:25:04 2006 for BRL-CAD by  doxygen 1.4.6