source: ogClient-Git/cfg/ogclient.json

Last change on this file was 30fdcce, checked in by Jose M. Guisado <jguisado@…>, 2 years ago

src: improve logging

Adds new logging handler redirecting messages to the log file
located in the Samba shared directory (applies to live mode
clients, i.e: ogLive)

Parses log level configuration from ogclient.json. See:

{

"opengnsys": {

...
"log": "INFO",
...

}
...

}

Adds --debug option to set root logger level to DEBUG when starting
ogClient. Overrides log level from config file.

In addition:

  • Replaces any occurence of print with a corresponding logging function.
  • Unsets log level for handlers, use root logger level instead.
  • Default level for root logger is INFO.
  • Replaces level from response log messages to debug (ogRest)
  • Property mode set to 100644
File size: 372 bytes
Line 
1{
2        "opengnsys": {
3                "ip": "127.0.0.1",
4                "port": 8889,
5                "log": "INFO",
6                "mode": "live",
7                "url": "https://127.0.0.1/opengnsys/varios/menubrowser.php",
8                "url_log": "http://localhost/cgi-bin/httpd-log.sh"
9        },
10        "samba": {
11                "activate": true,
12                "user": "opengnsys",
13                "pass": "og"
14        },
15        "vnc": {
16                "activate": true,
17                "pass": "ogvnc"
18        },
19        "vfio": [
20                "audio",
21                "wifi"
22        ]
23}
Note: See TracBrowser for help on using the repository browser.