next up previous
Next: scale_volume() Up: Brain Volume I/O Handling Previous: print()

set_signal_level()  

Set signal level for print()



Synopsis


int 
set_signal_level(char *lvl)


Description
Change the signal level for print() using a simple string. The signal level determines what goes on the screen and what goes into a logfile , e.g. if opened by
print(OPEN_LOGFILE, "mylogfile.txt");

Returns ERROR if the string is not recognized, OK on success.

Usage

  set_signal_level("std");

Choose one of the following (not case sensitive):

All:                 "DEBUG","DBG",
A lot:               "INFO","CHAT",
Normal:              "0","STD", "NORMAL", "DEFAULT",
Only serious things: "SILENT", "QUIET","WARNINGS", "WARNING", 
Only errors:         "SHUTUP", "ERROR", "ERRORS"

Revision


1.0  29/10-96   Ulrik Kjems


Program listing






Ulrik Kjems
6/3/1998