Giter Site home page Giter Site logo

kwirk / pyjournalctl Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 4.0 442 KB

THIS PROJECT WAS SUBSUMED INTO SYSTEMD UPSTREAM AND IS NO LONGER MAINTAINED - Python module that reads systemd journald similar to journalctl

License: GNU Lesser General Public License v2.1

Python 2.99% C 97.01%

pyjournalctl's People

Contributors

kwirk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyjournalctl's Issues

Usage Examples error

Hi, I think that there is an error in usage examples:

journal.add_match(PRIORITY="5", _PID="1") should be: journal.add_match("PRIORITY=5", "_PID=1")

journal = pyjournalctl.Journal() should be: journal = pyjournalctl.Journalctl()

improve compatibility with fedora-17

joemiller@14bc51f

I have a hacked up fork that provides only the functionality necessary to make this work with the systemd shipped on fedora-17. It does this by mostly just commenting out functions and definitions that are not present.

What are your thoughts on making this lib compatible with the various versions of systemd out in the wild? It might make the code a bit ugly but might be worthwhile. Not sure exactly how to approach this other than some autoconfig style checking for certain functions and wrapping things in #ifdef's.

I have also exposed sd_journal_get_fd() function because I want to get the file-descriptor to the journal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.