|
From: SourceForge.net <no...@so...> - 2005-04-11 09:14:15
|
Patches item #1180568, was opened at 2005-04-11 05:14 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1180568&group_id=235 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Kevin Stange (kstange) Assigned to: Nobody/Anonymous (nobody) Summary: Expose Gaim Common Logger Functions Initial Comment: We have several "common" logger functions in gaim, including a write, list, and size function, which I believe we should expose to the API so that users can place log files with different file extensions in the same log heirarachy as Gaim already uses. I see no reason why we shouldn't encourage other logging formats to store logs in the default locations. I expose four functions: gaim_log_common_writer() which opens a file for the log (the work of actually writing to the file is to be done by the coder) gaim_log_common_lister() which gets a list of logs with a specific extension gaim_log_common_sizer() which takes a gaim_log that uses the common_writer and sizes it. gaim_log_get_log_dir() which allows someone to get the default log locations that Gaim uses in the built in logger to create, read, list, or otherwise poke and prod logs. I also add a struct GaimLogCommonLoggerData which provides the basic logger data used by the common writer/lister/sizer functions, but has an extra_data member that still lets the logger add his own custom data. This is two patches. One for oldstatus will work for 1.3.0 because it exposes new API but it does not remote any old API. This actually leaves behind a function that was accidentally not static because it can't be removed for now. The second patch is for 2.0.0 and it cleans up the couple things that were exposed on the API that needed to be removed. Someone might want to double check that I didn't mistakenly damage the API or ABI of 1.3.0 in unacceptable ways. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=1180568&group_id=235 |