2013年1月23日 星期三

避免 K2 Server 中無用的錯誤訊息重複出現

因為環境的關係,有一台平常沒有啟用的BACKUP SERVER設定在K2 CLUSTER中,所以會每5分鐘就持續出現無法連線該台主機的錯誤訊息。造成LOG被無用的錯誤訊息塞滿滿,可讀性很差

修改Log設定檔 c:\Program Files (x86)\K2 blackpearl\Host Server\Bin\HostServerLogging.config

Severity Levels 有分: Ignore, Debug, Info, Warning, Error,將不需要記錄的類別設成 Ignore即可

Sample:

<Message MsgID="24148" Severity="Ignore" Category="0" Name="UMEmptyQError">
      The User Manager {0} returned an empty queue.
    </Message>


    <Message MsgID="28039" Severity="Ignore" Category="17" Name="CouldNotConnect">
      {0}
    </Message>