2017-10-10 90 views

回答

0

這聽起來像簽名驗證問題,它可能是證書本身,但更可能是配置問題。真正需要更多的信息才能知道它是什麼。

我認爲您在windows計算機上讀取日誌時遇到的問題是因爲文件很大或正在快速移動。如果文件太大,可以在appdir/pingfed */pingfed */server/default/conf/log4j2.xml中修改log4j2.xml配置文件,以減小日誌大小,使其更容易在記事本中讀取。這裏是一個滾動文件appender的例子,它應該給你提供一個簡單的maneageable文件。

<RollingFile name="FILE" fileName="${sys:pf.log.dir}/server.log" 
       filePattern="${sys:pf.log.dir}/server.log.%i" ignoreExceptions="false"> 
     <PatternLayout> 
      <!-- Uncomment this if you want to use UTF-8 encoding instead 
       of system's default encoding. 
      <charset>UTF-8</charset> --> 
      <pattern>%d %X{trackingid} %-5p [%c] %m%n</pattern> 
     </PatternLayout> 
     <Policies> 
      <SizeBasedTriggeringPolicy 
        size="20000 KB" /> 
     </Policies> 
     <DefaultRolloverStrategy max="5" /> 
    </RollingFile> 

如果你的問題是,文件被移動太快閱讀,那麼你可以考慮使用類似baretail還是現在,它有一個尾部開關獲取內容在PowerShell中。