Writing a Logger

Asked by gotzl

Hi,

I'd like to write my own Logger. Is there some documentation/specification already or do I have to beat my way through the source ?
e.g. I can't find the place to call my Logger...

Greets, gotzl

Question information

Language:
English Edit question
Status:
Solved
For:
Zeitgeist Framework Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Siegfried Gevatter (rainct) said :
#2

Hello,

No, there is no documentation for this, currently, but basically what a logger does is fetching the information it wants to log (the way it does this depends on what it wants to log, of course) and then send it to the engine using InsertEvents. You can look at zeitgeist-logger.py in extra/epiphany/ in the Zeitgeist source tree to see an example of an Epiphany extension sending opened pages to Zeitgeist.

If you have any question, feel free to ask in #zeitgeist on irc.freenode.net (or #gnome-zeitgeist on irc.gimp.org).

Thank you for your interest!

Revision history for this message
Siegfried Gevatter (rainct) said :
#3

Re-open.

Revision history for this message
Siegfried Gevatter (rainct) said :
#4

There is now documentation for the Zeitgeist API available at http://zeitgeist-project.com/documentation.

For a logger, the most relevant part is the InsertEvents call:
http://zeitgeist-project.com/docs/0.3/#_zeitgeist.engine.remote.RemoteInterface.InsertEvents

If you're developing with Python, see also:
http://zeitgeist-project.com/docs/0.3/#zeitgeist.client.ZeitgeistClient.insert_event

Revision history for this message
Siegfried Gevatter (rainct) said :
#5

There is now documentation for the Zeitgeist API available at http://zeitgeist-project.com/documentation.

For a logger, the most relevant part is the InsertEvents call:
http://zeitgeist-project.com/docs/0.3/#_zeitgeist.engine.remote.RemoteInterface.InsertEvents

If you're developing with Python, see also:
http://zeitgeist-project.com/docs/0.3/#zeitgeist.client.ZeitgeistClient.insert_event

Revision history for this message
Manish Sinha (मनीष सिन्हा) (manishsinha) said :
#6

I think nothing else is left for explaining in it. It should be marked as Solved