เรื่อง log ไฟล์ เวลาเขียนโปรแกรมใครคิดว่าไม่สำคัญ
ยิ่งตอนโปรแกรมรันไม่ออก, มี Bug, Error, เจอ Hack เราสามารถใช้มันติดตามเพื่อหาปัญหาได้
โดยทางโปรเจค Apache logging services
ได้เตรียม framework สำหรับสร้าง log ไฟล์ง่าย ๆ รองรับหลายภาษา
(โหลดไลบรารี่มา แล้วก็ตั้งค่า config ในไฟล์ จากนั้นก็ใช้ได้เลย)
ถ้าเป็นภาษา Java ก็จะใช้ log4j
ภาษา PHP ก็จะใช้ log4PHP
ตระกูล .NET ก็จะใช้ log4net
ภาษา C++ ก็จะใช้ log4cxx
บทความนี้เป็นตัวอย่างการใช้ log4net สำหรับตระกูล .Net
http://www.thaicreate.com/community/dotnet-log4net.html
apache error log 在 Apache - log檔備份與管理@ 貓老大的部落格 - 隨意窩 的相關結果
1、使用logrotate的機制 1.1 先確認Apache的error log與access log存放位置 [root@cat]# cd /usr/local/apache2 <== 切換到Apache的安裝目錄 ... <看更多>
apache error log 在 Log Files - Apache HTTP Server Version 2.4 的相關結果
The server error log, whose name and location is set by the ErrorLog directive, is the most important log file. ... <看更多>
apache error log 在 How do I find Apache http server log files? - Blog 的相關結果
All apache errors / diagnostic information other errors found while serving requests are logged to this file. Location of error log is set ... ... <看更多>