ailog-analytics / wls-analytics

0 stars 0 forks source link

Simplify CLI command path #11

Open tomvit opened 8 months ago

tomvit commented 8 months ago

It would be good to simplify command path for the CLI as currently there are repetition of keywords. For example, the command

wlsanalytics log soa error soa

uses the command soa and a set soa.

This should be simplified as:

wlsanalytics log error soa

where soa will be the set defined in the yaml configuration file.

This will require to define the log reader for the set in the yaml configuration file that will be automatically used to read log entries of the respective set.

tomvit commented 8 months ago

The code was refactored in https://github.com/ailog-analytics/wls-analytics/commit/d8f216fe5984a6e04f51bc64ba556a3b8e7e1c05 with the goal to simplify commands and internal wlsanalytics structure. The commands are as follows:

log out <set>

where <set> is the set name from the configuration. The set defines the reader which implements logic for specific types of logs, i.e. OSB or SOA. This will be possible to extend later to parse diagnostics logs.