Sys::Syslog

 use Sys::Syslog;
 
 $program = $0;
 openlog "$program $$", 'ndelay', 'user';         # 'user'もしくはLOG_USER (ファシリティ)
 syslog 'info', 'this is %s', ' a test message';  # 'info'もしくはLOG_INFO (レベル)
 closelog;

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2009-10-27 (火) 07:58:07