Last change
on this file was
30fdcce,
checked in by Jose M. Guisado <jguisado@…>, 3 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
|
Rev | Line | |
---|
[38b6d77] | 1 | { |
---|
| 2 | "opengnsys": { |
---|
| 3 | "ip": "127.0.0.1", |
---|
| 4 | "port": 8889, |
---|
[30fdcce] | 5 | "log": "INFO", |
---|
[1377ace] | 6 | "mode": "live", |
---|
[38b6d77] | 7 | "url": "https://127.0.0.1/opengnsys/varios/menubrowser.php", |
---|
| 8 | "url_log": "http://localhost/cgi-bin/httpd-log.sh" |
---|
| 9 | }, |
---|
| 10 | "samba": { |
---|
[efedaa2] | 11 | "activate": true, |
---|
[38b6d77] | 12 | "user": "opengnsys", |
---|
| 13 | "pass": "og" |
---|
| 14 | }, |
---|
| 15 | "vnc": { |
---|
| 16 | "activate": true, |
---|
| 17 | "pass": "ogvnc" |
---|
[cc0d987] | 18 | }, |
---|
| 19 | "vfio": [ |
---|
| 20 | "audio", |
---|
| 21 | "wifi" |
---|
| 22 | ] |
---|
[38b6d77] | 23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.