PHPã«ã³ãã¡ã¬ã³ã¹ç¦å²¡ 2023 2023/06/24 uzulla
$Date: 2011-02-15 21:13:19 -0800 (Tue, 15 Feb 2011) $ 1Â Â Â Using Log Handlers The Log package is implemented as a framework that supports the notion of backend-specific log handlers. The base logging object (defined by the Log class) is primarily an abstract interface to the currently configured handler. A wide variety of handlers are distributed with the Log package, and, should none of them fit y
Pearã®Log(1.9.3)ã§syslogã«ãã°ãåãã«ã¯ããã³ãã©ã«syslogãæå®ãã¾ãã å é¨ã§ã¯ãopenlogé¢æ°ã¨syslogé¢æ°ã使ç¨ãã¦ãããã第äºå¼æ°ã«ã¯ãopenlogã§æå®ãã facilityãæå®ãã¾ããæå®ããå®æ°ã¯ã次ã®ããã«ãªãã¾ãã å®æ°èª¬æ
Pearã«Log(1.9.3)ã¨ãã®ã³ã°ã¦ã¼ãã£ãªãã£ããã±ã¼ã¸ãããã¾ãã ãã°ãåããã¨ã§ããããã°ããããããªã£ãããéç¨ç¶æ³ã®ææ¡ãåºæ¥ãããã¾ãã ãã°ãåãã«ã¯ãLogã¯ã©ã¹ã®factoryé¢æ°åã¯ãsingletoné¢æ°ã使ç¨ãã¦ã¤ã³ã¹ã¿ã³ã¹ ãä½æãã¾ããsingletonã§ã¯ãå¼æ°ã®å 容æ¯ã«ããããã¤ã³ã¹ã¿ã³ã¹ãä½æããã¾ãã (ä¾ãã°ãfileã«åºåããã¤ã³ã¹ã¿ã³ã¹ã¨Mailã«åºåããã¤ã³ã¹ã¿ã³ã¹) singletoné¢æ°ã§ã¯ãå¼æ°ãã·ãªã¢ã©ã¤ãºãé åã®ãã¼ã¨ãã¦ãã¾ããfactoryé¢æ°ã¯ $handler = strtolower($handler); $class = 'Log_' . $handler; $classfile = 'Log/' . $handler . '.php'; ä¸è¨ã®ããã«ãªã£ã¦ãããæå®ããããã³ãã©ã«å¿ãã¦å¯¾å¿ããã¯ã©ã¹ãã¤ã³ã¹ã¿ã³ã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}