Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

#!/usr/bin/python3 

 

import isc.log 

# This would come from a dictionary in real life 

MSG_ID = isc.log.create_message("MSG_ID", "Message with %2 %1") 

DIFFERENT = isc.log.create_message("DIFFERENT", "Different message") 

isc.log.init("test") 

logger = isc.log.Logger("output") 

 

logger.debug(20, MSG_ID, "test", "no output") 

logger.info(MSG_ID, [1, 2, 3, 4], "list") 

logger.warn(DIFFERENT) 

logger.fatal(MSG_ID, 1, 2) 

logger.set_severity("DEBUG", 99) 

logger.debug(1, MSG_ID, 2, 3)