diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2017-04-24 15:00:21 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2017-04-24 15:00:21 +0200 |
commit | eda14393d20cdd0b9ef9303f024f4c8a0b47eda2 (patch) | |
tree | d5fffe103ad8f39669147b69e59274b0e4731fe8 /examples | |
parent | bec81866d4da33405c35c8eb4dc15d4fc5bfbfb7 (diff) | |
download | rumba-eda14393d20cdd0b9ef9303f024f4c8a0b47eda2.tar.gz rumba-eda14393d20cdd0b9ef9303f024f4c8a0b47eda2.zip |
Logging: added set and reset logging level method, small logging modifications.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/example.py | 5 | ||||
-rwxr-xr-x | examples/two-layers.py | 6 |
2 files changed, 11 insertions, 0 deletions
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") |