Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
だから、.logHTMLページにファイルを含めています
.log
<!--#include file="/logs.access.log" -->
ログの後に改行がないことを除いて、問題なく動作します。だから、私はログの長い行を持っています.
読むのはかなり面倒です...ログの後に自動的に改行を追加する解決策はありますか(aのようにtail)?
tail
これはおそらく、ログ ファイルがプレーン テキストであり、改行が保持されない html として表示されているためです。使用してみて<pre><!--#include file="/logs.access.log" --></pre>、それが役立つかどうかを確認してください。
<pre><!--#include file="/logs.access.log" --></pre>