Commit Graph

15 Commits (8741b2e2724fabb25465c06c3a4f881d9aa28d67)

Author SHA1 Message Date
Jose M. Guisado 30fdcceea3 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)
2022-06-08 10:27:06 +02:00
Jose M. Guisado cc0d98786d #1060 virtual: enable audio and wifi vfio by default 2021-09-01 13:33:18 +02:00
Roberto Hueso Gómez 1377aceec2 Rename 'linux' mode to 'live' mode
'linux' represents ogLive mode that is the reason for the rename.
2020-06-05 14:55:10 +02:00
Roberto Hueso Gómez 80b7023ecb Add virtual config example file
This file is an example of the configuration for an ogclient running in virtual
mode.
2020-05-25 13:39:57 +02:00
Roberto Hueso Gómez efedaa27f1 Fix typo in configuration json 2020-05-15 12:20:50 +02:00
Roberto Hueso Gómez 38b6d77561 Switch config file to json
This patch makes configuration parsing easier as well as making the full
configuration available in many subclasses.
2020-05-13 14:10:01 +02:00
Javier Sánchez Parra 0807ec76ed Add realtime log menu
We observed that with the new ogClient the ogLive did not show the
realtime log menu*.

This commit changes the ogClient to launch the browser and show the
realtime log menu when some commands are executed.

* The realtime log menu is a menu that shows current status and info
  about the command that the ogLive is executing.
2020-04-22 10:39:02 +02:00
Roberto Hueso Gómez 7ccc498014 Use samba for create and restore virtual partitions
This requires to configure user and password for samba repositories.
2020-04-17 15:50:35 +02:00
Roberto Hueso Gómez a32bf4071e Change default server port 2020-04-16 10:15:29 +02:00
Roberto Hueso Gomez 4f03c31f85 Add mode selection for ogClient 2020-04-08 13:31:45 +02:00
Javier Sanchez Parra f11e345dbf Rename config file
This commit changes the name of the config file from ogagent.cfg to
ogclient.cfg.
2020-03-24 08:06:02 +01:00
Javier Sánchez Parra bf69d20966 Launch the graphical interface
This patch adds the launching of the browser that works as interface for
the users in ogLive.
2020-02-24 14:53:42 +01:00
Alvaro Neira Ayuso f566579f8e Set up the ip server for working in localhost by default 2020-01-19 19:50:44 +01:00
Alvaro Neira Ayuso 4ad2759e55 Remove remote from cfg file
This information is older for this version. We don't need to have any information
about the remote.
2020-01-19 19:50:44 +01:00
Alvaro Neira Ayuso 29fe301ec8 Create new ogClient
This commit init the new ogClient. The new ogClient has support for configuring
and for connecting with the ogAdminServer.
2020-01-19 19:50:44 +01:00