* Sys::Syslog [#hd8495c5]

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

** 参考 [#cd8b8f63]
- http://search.cpan.org/perldoc?Sys::Syslog
- ファシリティ・レベル http://search.cpan.org/perldoc?Sys::Syslog#CONSTANTS

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