Logging Methods for Modules

Development-related discussion, including bundled plugins
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 18 Mar 2013, 01:51

Logging Methods for Modules

Postby hydrian » 18 Mar 2013, 02:11

Hey devs,
How should administrative error messages generated? I'm generating authentication modules for LDAP. I want to generate error messages when LDAP specific errors happen. Errors such as cannot connect to ldap server, service account cannot bind, or multiple users returned. I will reject the user login silently to the user interface but I want an error message written to a logger. Should I just send it to E_USER_WARNING and let the admin deal with the logging or is there an internal TTRRS logging method I should be using?

User avatar
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia

Re: Logging Methods for Modules

Postby fox » 18 Mar 2013, 09:14

There's no tt-rss specific logging. Some people have warnings redirected to browser output (which is ridiculous, but there you have it). Maybe error_log()?

Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests