summaryrefslogtreecommitdiff
path: root/src/logger.py
AgeCommit message (Collapse)Author
2014-04-06Do not instantiate the message logger at module levelmathieui
.
2014-04-04Remove unused importsmathieui
(thanks eijebong)
2014-04-01Fix #2462 (wrong timezone in the logs)mathieui
Now everything in the logs is in UTC time, and is converted when read (also, actually return the logs after loading them instead of not doing anything)
2014-03-24Use RawConfigParser.get{int,bool,float} whenever possiblemathieui
config.get('option', 'value').lower() == 'value' is just ugly and stupid, especially for bool. One if in basetabs:556 was also missing a comparison, leading to True whenever the option was set.
2014-01-29Fix a traceback when opening an empty log fileMathieu Pasquet
2013-09-06TIL splitlines()Florent Le Coz
2013-09-06Much more efficient and clean way to get the last n messages from historyFlorent Le Coz
2013-08-13Remove debugmathieui
2013-08-06Fix a crash for python < 3.3mathieui
2013-08-06Fix the folder creation for roster changesmathieui
2013-08-04Prevent messages with typ=0 from being loggedmathieui
(new typ value)
2013-08-04Do not load logs if use_logs is falsemathieui
2013-08-04Fix a traceback on get_logsmathieui
2013-08-03Logs errors by default, in a dedicated filemathieui
- log_errors option, true by default - errors go in log_dir/errors.log (so $XDG_DATA_HOME/errors.log by default) This should help a lot for debugging, and provide a way for people to easily give debug traces without useless or personal infos.
2013-06-22Parse the new log format to display it. (ref #2311)mathieui
Archiving old logs is recommended before running this update, just in case.
2013-06-19Revert 9eaffe1369f2be177576402f20edcd114a1eaa9d because of 3.1 compatmathieui
2013-06-09Use the new format in the roster log too (ref #2311)mathieui
(and add the pep events and invites to it)
2013-06-09Adopt the mcabber log format (Fix #2311)mathieui
2013-06-09Fix the os.makedirs calls so that they don’t traceback for nothingmathieui
2013-04-06Do not attempt to log things when use_log = falsemathieui
2013-04-05Handle I/O errors bettermathieui
- Do not crash because of low disk space - Notify the user whenever it happens - A few functions now return a boolean instead of nothing - Config.silent_set is Config.set_and_save without toggle and returning strings. It is used whenever we don’t need set_and_save - Config.set_and_save now returns a tuple (that can be passed directly to core.information()) TODO: display the precise error to the user (instead of “unable to…”)
2013-03-31Fix #2275, ref #2229mathieui
- Refactor the message handlers to be more readable - Add a group_corrections tab-specific option (#2229) - Fix issues with /correct in private tabs and conversation tabs
2012-12-16Fix the per-tab options on logsmathieui
2012-12-15fix a traceback when we accidentally seek() in the middle of a charmathieui
2012-12-15Really make the use_log a tab-specific option.mathieui
and do not read the whole log file for the last lines.
2012-12-15Sort the configurations options by name in the documentationmathieui
(instead of chaos)
2012-12-15Fix #2172 (select which rooms are logged)mathieui
2012-11-11Preload history into discussion windows (à la mcabber)mathieui
- New option load_log defaulting to 200 to indicate the number of lines to be loaded - It’s still very raw, and the format of the message does not match the format of the normal room history, for example - Works in the Private chat, MUC, and Conversation tabs Thanks to labedz <github@labedz.org> for the original code
2012-04-02Fixes #2350 (reloading static resources on SIGHUP)mathieui
2011-11-16Use os.path.expanduser to interpret '~' for _dir config optionsmathieui
2011-11-06Code cleanup (unused import, variables, undefined names, etc…)mathieui
2011-09-11Change license to zlib (MIT sucks :()Florent Le Coz
2011-09-06Change license to MITFlorent Le Coz
2011-06-18Fixes bug #2183mathieui
2011-05-27Fixes #2174mathieui
2011-02-21Avoid crash when write to log file failsFlorent Le Coz
2011-01-12Log messages from normal and private conversations as wellFlorent Le Coz
2011-01-02fix the log of MUC messages in fileslouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2011-01-01update copyright datelouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2010-11-15a few renamings, and some other stufflouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2010-10-04update e-mail address and READMElouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2010-09-03python 3 only. Fixes all EncodingError bugs :))))louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
2010-08-31Switch to Sleekxmpp. fixed #1768louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13