bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Reply To: Logfile size

E2E Forum General Discussion Logfile size Reply To: Logfile size

#1835

Alfred
Moderator

The good news is you can change the log rotation to an hourly interval.
The bad news is you have to edit a configuration file manually and the file
will be reset each time you change a log level.

You have to edit the file e2e_bridge_data/bridge_YOURSERVICE/repository/tabfiles/Base/logger.tab .

You need to add “<Rotation>HOURLY</Rotation>” as child element to Logger->TransactionFiles->TransactionFile.

My file is for example:


<?xml version="1.0" encoding="utf-8"?>
<Logger>
  <LogFiles>
    <Name>logs/bridgeserver_</Name>
    <LogFile>
      <Name>logs/bridgeserver_</Name>
      <Level>Info</Level>
      <Zone>LOCAL</Zone>
    </LogFile>
    <StdErr>
      <Level>Error</Level>
      <Zone>UTC</Zone>
      <Format>e2eruntime[%PID%[%Time%[%Level%[%Category%[%Domain%[%Code%[[%Description%]]</Format>
    </StdErr>
  </LogFiles>
  <TransactionFiles>
    <TransactionFile>
      <Name>logs/transaction_</Name>
      <Level>IOInternal</Level>
      <Rotation>HOURLY</Rotation>
    </TransactionFile>
  </TransactionFiles>
</Logger>