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:

  1. Individuare il file di configurazione serviceconfig.xml. Vedere l'attivitā correlata.
  2. Open it in an editor, and search for the <Logging> element.
  3. 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:

Per modificare i filtri di registrazione log, procedere come segue:

  1. In the serviceconfig.xml file, locate the <Logging> element.
  2. 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:

To modify logging format, follow these steps:

  1. In the serviceconfig.xml file, locate the <Logging> element.
  2. 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
 


Copyright (C) 2006 Intel Corporation.