Log :: Dispatch :: Config

Log :: Dispatch :: Config is een log4j voor perl.
Download nu

Log :: Dispatch :: Config Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • Perl Artistic License
  • Prijs:
  • FREE
  • Naam uitgever:
  • Tatsuhiko Miyagawa
  • Uitgever website:
  • http://search.cpan.org/~miyagawa/

Log :: Dispatch :: Config Tags


Log :: Dispatch :: Config Beschrijving

Log :: Dispatch :: Config is een log4j voor perl. Log :: Dispatch :: Config is een Log4J voor Perl.Synopsis Gebruik Log :: Dispatch :: Config; Log :: Dispatch :: Config-> Configureren ('/ pad / naar / log.conf'); Mijn $ Dispatcher = Log :: Dispatch :: Config-> Instance; $ Dispatcher-> Debug ('Dit is foutopsporingsbericht'); $ dispatcher-> noodsituatie ('iets * slecht * gebeurde!'); # Automatisch herladen Conf-bestand, wanneer gewijzigd log :: verzending :: config-> configure_and_watch ('/ pad / naar / log.conf'); # of als u uw eigen config-parser schrijft: Gebruik Log :: Dispatch :: Configurator :: XMLSIMPLE; Mijn $ config = log :: dispatch :: configurator :: xmlsimple-> nieuw ('log.xml'); Log ::::: config-> configureren ($ config); Log :: Dispatch :: Config is een subklasse van Log :: Dispatch en biedt een manier om log :: Dispatch-object met configuratie-bestand (standaard, in AppConfig-formaat te configureren ). Ik bedoel, dit is log4j voor Perl, niet met alle API-compatibiliteit, hoewel METHODDIS Module heeft een klassenmethode configureren welk parseert configuratie bestand voor latere creatie van het logboek :: Dispatch :: config-singleton-instantie. (Daadwerkelijke constructie van het object wordt gedaan in de eerste aanlegoproep). Dus, wat u zou moeten doen is eenmaal in Mod_perl-methode worden gespecificeerd (zoals opstarten.pl in MOD_PERL), dan kunt u geconfigureerd dispatcher-instantie via log :: Dispatch ontvangen: : Config-> instantie. Vereisten: · Perl


Log :: Dispatch :: Config Gerelateerde software