summaryrefslogtreecommitdiff
path: root/src/core/log.c
AgeCommit message (Collapse)Author
2015-04-17Merge pull request #199 from ailin-nemui/config-parserAlexander Færøy
Make config parser more robust
2015-04-07Change all strcmp() to g_strcmp0() to handle nulls gracefullydequis
Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c
2015-02-17add CONFIG_REC to config_node_section* APIsAilin Nemui
this adds the CONFIG_REC * to the config_node_section and config_node_section_index APIs as they will require access to the config cache later on to make the config parser more robust.
2014-09-30Fix use-after-free bug with cached settings valuesAlexander Færøy
This patch fixes a couple of use-after-free bugs when caching various string related setting values. Fixes: #143
2014-06-10Replace deprecated g_str[n]casecmp with g_ascii_str[n]cmp.David Hill
2009-02-21Reject invalid level specifications in /set.Jilles Tjoelker
Most of these have names that end in "_level". git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5021 dbcabf3a-b0e7-0310-adc4-f8d773084564
2009-02-10Prefer g_path_get_dirname() over g_dirname().Alexander Færøy
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5010 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30Make needlessly global variable local where used.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4932 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-11-30Do not check for fcntl.Emanuele Giaquinta
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4931 dbcabf3a-b0e7-0310-adc4-f8d773084564
2008-03-15Use g_ascii_str{,n}casecmp for case insensitive comparison withEmanuele Giaquinta
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4772 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-12-05Simplify itemcmp.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4656 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-10Allow logging of lines with no target only to logs with no items or with aEmanuele Giaquinta
wildcard item. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4491 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Oops. Update address correctly now.Wouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4490 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-05-08Update FSF addressWouter Coekaerts
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4489 dbcabf3a-b0e7-0310-adc4-f8d773084564
2007-04-07Allow logging of lines with no target to matching non autolog logs.Emanuele Giaquinta
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4439 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-10-10Fixed bug with logging where item names starting with the same string were ↵Valentin Batz
not logged properly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3314 dbcabf3a-b0e7-0310-adc4-f8d773084564
2004-08-19Patch by jimmy: Details In 0.8.9 it is not possible to log all activity on a ↵Timo Sirainen
given server; you must confine the logging to a window or a set of targets. This patch adds a default "*" target which matches everything on the server, including NULL items associated with it: git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3282 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-11-21Create log file directories using /set log_create_file_mode + exec-bit.Timo Sirainen
Patch by Noah Levitt <nlevitt at columbia.edu> git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3022 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-07-16If log file path contains any $variables or %time codes, create theTimo Sirainen
whole directory structure to the log file. This way log files created with /LOG OPEN properly create the directories at startup. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2869 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-17Log writing sometimes might have produced some glib errors.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2499 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-04printtext(): you can now specify server target with tag name instead ofTimo Sirainen
record. This is useful with DCC chats when you know the initial server tag but the server might be already disconnected. So what this means is that you now get ~/irclogs/ircnet/=nick.log instead of ~/irclogs/=nick.log :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2388 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-02Comments are now allowed everywhere in config files.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2374 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-31changed default log directory mode to 0700 and file mode to 0600.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1949 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-22When logs are rotated, automatically create the new directory where to openTimo Sirainen
the log if it has changed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1897 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-13/LOG OPEN -color, /SET awaylog_colors - specifies that the color codesTimo Sirainen
should be written to log file. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1742 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26"log rotate" -> "log rotated"Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1565 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26moved "log rotate" after the logging was stopped.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1561 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-06-26"log rotate" signal addedTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1560 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-18crashfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1239 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17Config file: ircnets -> chatnets, added type = "chat protocol" toTimo Sirainen
chatnet config. Moved reading chatnets to core. Lots of other multiprotocol updates. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1237 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-17log_write_rec(): added level parameter. writing /LASTLOG to log filesTimo Sirainen
doesn't anymore print the current timestamp at the start of line since /LASTLOG messages have their original timestamp already. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1235 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-16If log file locking fails, check that it failed because file wasTimo Sirainen
locked, not because filesystem doesn't know locks or some other reason. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1219 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-02-10Write buffer - logs and rawlogs write to files through this. By defaultTimo Sirainen
everything gets written immediately, but you can make it wait until there's specified amount of data in buffer or write once in a hour or so. Useful for people who want to keep hard disk at sleep at nights but still want to log. /SET write_buffer_mins, /SET write_buffer_kb: When to flush buffer. /FLUSHBUFFER: Flush the buffer immediately git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1201 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-01-14Check the return value of strftime() properlyTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1113 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-26config changes, CONFIG_REC is now required parameter forTimo Sirainen
config_node_set_int/bool() and config_node_add_list() git-svn-id: http://svn.irssi.org/repos/irssi/trunk@886 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-11-25Time formats didn't work in directory name of autologs.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@866 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28Some fixes.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@797 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-28/SET log_theme - you can now write to log files with different themeTimo Sirainen
than to screen. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@795 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-18Log items weren't read correctly from configTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@769 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-17Logging fixes. Autologging with same named channels in differentTimo Sirainen
networks should work correctly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@765 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-10-13Complain only once with autologging if opening some log file failedTimo Sirainen
(locked by another irssi) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@734 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-25log_day_change was never printed in logs.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@629 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-11/LOG: Removed the -rotate option, it was pretty useless since addingTimo Sirainen
the % formats to file name already tells that the log should be rotated. Autologging supports log rotating now too, just add the wanted % formats to /SET autolog_path git-svn-id: http://svn.irssi.org/repos/irssi/trunk@586 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-08-11Autologging fixes: Don't log WHOIS replies by defaultTimo Sirainen
(autolog_level = all -crap). And with /msg nick1,nick2 don't log to file nick1,nick2.log but nick1.log and nick2.log separately. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@585 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-21Don't save autologs.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@501 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-16Cleaned up code.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-07-02Logs were closed and entirely removed after doing /RELOAD.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@418 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-10Rotate time names changed :) week -> weekly, day -> daily, etc.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@308 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-06-02common-setup.h wasn't removed from here - Made rawlog to useTimo Sirainen
"log_create_mode" setting. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@273 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-05-18Some logging fixes. Flood checking had a memory leak. Query had a smallTimo Sirainen
memory leak. Text buffer fixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@226 dbcabf3a-b0e7-0310-adc4-f8d773084564