Skip to content

Commit 10bbe52

Browse files
committed
logg.py: adds comments about protocol logging levels
Signed-off-by: Jed Reynolds <[email protected]>
1 parent 8fccdf3 commit 10bbe52

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lanforge_client/logg.py

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ class Logg:
3737
These reserved words may not be used as tags:
3838
debug, debugging, debug_log, digest, file, gui, http, json, log, method, tag
3939
40+
Protocol logging levels:
41+
* always: X-Errors( stops script on halt_on_errors)
42+
* timeouts: can be configured as halt level errors
43+
- digest (POST set_port / GET /ports )
44+
- url (POST /cli-json/set_port / GET /port/1/2/3/?fields)
45+
- json (POST /cli-json/set_port { a:b } ; GET /port/1/2/3?fields {results interfaces[]}
46+
- http that plus X-Warnings and ALL headers
47+
- gui Xtra debugging messages generated by LANforgeGUI
48+
49+
4050
Please also consider how log messages can be formatted:
4151
https://stackoverflow.com/a/20112491/11014343:
4252
logging.basicConfig(format="[%(filename)s:%(lineno)s - %(funcName)20s() ] %(message)s")

0 commit comments

Comments
 (0)