5 * Revision 1.1.1.1 1996/03/06 10:47:25 mclareni
9 #include "zebra/pilot.h"
10 SUBROUTINE RZLOGL(LUN,LOGLEV)
12 ************************************************************************
14 * To set the LOG level
16 * LUN Logical unit number for which the logging level has to be set
17 * LOGLEV Logging level
18 * -3 Suppress all messages
19 * -2 Error messages only
21 * 0 Normal logging: RZFILE, RZEND
22 * 1 Log to watch rare events
23 * 2 Log to monitor calls
25 * Short dumps to debug user-written output routines
27 * Full dumps to debug user-written output routines
31 * Author : R.Brun DD/US/PD
33 * Last mod: 17.11.92 JDS - restrict loglevel to documented range
34 * so that only 3 bits are required to store it (15-17)
36 ************************************************************************
37 #include "zebra/zunit.inc"
38 #include "zebra/rzcl.inc"
40 *-----------------------------------------------------------------------
45 10 IF(LRZ.EQ.0)GO TO 99
46 IF(IQ(KQSP+LRZ-5).NE.LUN)THEN
52 LOGL = MAX(LOGL, -3) + 3
53 CALL SBYT(LOGL,IQ(KQSP+LRZ),15,3)
54 IF(LOGLEV.GE.0)WRITE(IQLOG,9022)LUN,LOGLEV
55 9022 FORMAT(' RZLOGL. File at LUN=',I6,', Diagnostic log level=',I2)