darasion
V2EX  ›  PHP

如何用Yii的LogRoute实现title, content形式的log ?

  •  
  •   darasion · Jan 20, 2012 · 3405 views
    This topic created in 5293 days ago, the information mentioned may be changed or developed.
    打log的时候,需要发出邮件,但是邮件需要有个简单明了的标题说明这条log信息是关于什么的。
    但是Yii默认的 CEmailLogRoute 只有固定的标题,无法从标题区分log信息是什么。

    基类CLogRoute 也只有 message ,level,category 这些信息。如果我想把message分成title和content两部分,应该怎么做呢?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1203 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:49 · PVG 01:49 · LAX 10:49 · JFK 13:49
    ♥ Do have faith in what you're doing.