Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > System > Logging

    Yamlog 0.9

    Download button

    No screenshots available
    Downloads: 272  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jonas Melian | More programs
    ISC License / FREE
    February 14th, 2010, 15:50 GMT
    ROOT / System / Logging

     Read user reviews (0)  Refer to a friend  Subscribe

    Yamlog description

    Logging in YAML format

    Yamlog is an utility written in Python that uses a rotating file that rollovers at 128 KB, it writes messages in YAML format since it's more easy to parse --using the international format for date and time--, and it also logs the higher-level messages to the standard error into single lines.

    To setup the logging:

    import yamlog
    yamlog.setup(filename)


    where filename is the file where is going to be logged; /tmp/python.log by default.

    And to tear down it:

    yamlog.teardown()


    Then, in each module where is going to be used, there is to add:

    import yamlog
    _log = yamlog.logger(__name__)


    so it passes the module name where it's being run. Now, can be used the logging methods --debug(), info(), warning(), error(), critical()-- to indicate the importance of a logged message.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    YAML logging | YAML messages | Python | YAML | logging

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM