From eda14393d20cdd0b9ef9303f024f4c8a0b47eda2 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Mon, 24 Apr 2017 15:00:21 +0200 Subject: Logging: added set and reset logging level method, small logging modifications. --- examples/example.py | 5 +++++ examples/two-layers.py | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'examples') diff --git a/examples/example.py b/examples/example.py index 8d91102..56193c2 100755 --- a/examples/example.py +++ b/examples/example.py @@ -15,6 +15,11 @@ import rumba.prototypes.ouroboros as our import rumba.prototypes.rlite as rl import rumba.prototypes.irati as irati +import rumba.log as log + + +log.set_logging_level('DEBUG') + n1 = NormalDIF("n1", policies = {"rmt.pff": "lfa", "security-manager": "passwd"}) diff --git a/examples/two-layers.py b/examples/two-layers.py index fff3866..9d1a6b3 100755 --- a/examples/two-layers.py +++ b/examples/two-layers.py @@ -15,6 +15,12 @@ import rumba.prototypes.ouroboros as our import rumba.prototypes.rlite as rl import rumba.prototypes.irati as irati +import rumba.log as log + + +log.set_logging_level('DEBUG') + + n1 = NormalDIF("n1") n2 = NormalDIF("n2") n3 = NormalDIF("n3") -- cgit v1.2.3