logging API

Discuss about Group-Office development here

Moderator: Developers

everplays
Posts: 2
Joined: Tue Dec 22, 2009 12:08 pm

logging API

Postby everplays » Tue Dec 29, 2009 7:38 am

hi there,

just want to know is there any API to log events in go_log table?
is log method in search class the way that we should use? or
just simply add rows in go_log? seems go_links_*s are linked
with go_log, is it necessary? if yes how we should create a link
table that doesn't conflict with others. for example i can't use
go_links_6 because it's related with files module & it's hard coded.

guide me if I'm in wrong way, thanks
mschering
Site Admin
Site Admin
Posts: 8281
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: logging API

Postby mschering » Tue Dec 29, 2009 4:08 pm

You could just add db entries. Or you could create a new search object and use the log function. It's a bit unlogical to have that log function in the search class but it was convenient at the time...
Best regards,

Merijn Schering
Intermesh
everplays
Posts: 2
Joined: Tue Dec 22, 2009 12:08 pm

Re: logging API

Postby everplays » Thu Dec 31, 2009 6:58 am

thanks, I've created a simple class for logging, but still
i don't know how i can create new link_type for using
in go_log.

currently i have added $lang['link_type'][23] in language
files of my module but seems I'm missing something!

Who is online

Users browsing this forum: No registered users and 1 guest