Configurazione della registrazione log
Un aspetto importante di tutte le applicazioni server č la registrazione log. Agent
Controller fornisce una funzione di registrazione log per le attivitā di debug e di creazione di prospetti. Tale funzione
viene eseguita mediante l'utilizzo di un singolo file di log, servicelog.log che, per impostazione
predefinita, si trova nella directory config, in cui č installato Agent Controller.
Č possibile configurare la registrazione log
Modifica della directory di registrazione log predefinita
In alcune situazioni, potrebbe essere necessario modificare la directory di registrazione log predefinita. Ad esempio, nei sistemi in cui Agent Controller č stato installato su un
file system di sola lettura.
Per modificare la directory di registrazione log predefinita, procedere come segue:
- Individuare il file di configurazione serviceconfig.xml. Vedere l'attivitā correlata.
- Open it in an editor, and search for the <Logging>
element.
- Specify the new logging directory as the value for the
directory attribute of this element.
Modifica di filtri di registrazione log
You can specify that only messages of a
specified logging level or greater are to be logged to the file by the use of a
simple logging filter. Di seguito vengono specificati i diversi
livelli di registrazione log:
- GRAVE: registra solo i messaggi di errore che indicano situazioni non ripristinabili.
- CRITICAL: (default) Includes the above, plus messages that indicate
normal operations were interrupted by an error.
- WARNING: Includes the above, plus messages about unexpected events that
shouldn't interfere with continued operation.
- INFORMATION: Includes the above, plus messages about normal events that
may be of interest to a user.
- DEBUG: Includes the above, plus messages concerning the detailed flow of
internal operations used for troubleshooting.
Per modificare i filtri di registrazione log, procedere come segue:
- In the serviceconfig.xml file, locate the <Logging>
element.
- Change the value of its level attribute to be one of the
above logging levels, according to your requirements.
Changing the format of the logged messages
You can specify the format of the message that are logged to be either
plain text or CBE formatted. The format specifications are:
- CBE:
(default) Messages will be logged using the Common Base Event format.
This includes detailed information about the context and origin of each
message. These messages are most easily read when using a CBE log
reading utility.
- Simple: Message will be logged in simple text.
To modify logging format, follow these steps:
- In the serviceconfig.xml file, locate the <Logging>
element.
- Change the value of its format attribute to be one of the
above logging formats, according to your requirements.
Attivitā correlate
Individuazione dei file di configurazione
Gestione di Agent Controller