--- Log opened Mon Apr 14 00:00:53 2008 |
00:23 | | Thaqui [~Thaqui@Nightstar-123.jetstream.xtra.co.nz] has joined #code |
00:23 | | mode/#code [+o Thaqui] by ChanServ |
00:33 | | Shou|X_x [~Shoukanju@Nightstar-19231.dhcp.embarqhsd.net] has quit [Connection reset by peer] |
00:34 | | Shoukanjuu [~Shoukanju@Nightstar-19231.dhcp.embarqhsd.net] has joined #code |
01:06 | | Thaqui [~Thaqui@Nightstar-123.jetstream.xtra.co.nz] has left #code [Leaving] |
01:22 | | gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z?] |
03:05 | <@C_tiger> | Hmmm... advice? |
03:06 | <@C_tiger> | What's the best way to write logs that roll over? |
03:06 | <@C_tiger> | IE when they get over a certain size, they just start deleting the old stuff? |
03:09 | <@Finerty> | Uh... hm. |
03:09 | <@C_tiger> | given that every single function in this damned thing calls the log function and right now it's just appending. |
03:10 | <@Finerty> | Usual way to do that sort of thing is to have it archive old logs. |
03:11 | <@C_tiger> | Ok, currently: it's logging a little comment for every single function call. Which, while useful for debugging, gets really massive really fast. |
03:14 | <@C_tiger> | So keeping ... 2 MB of logs or so would be awesome... but in such a way that I don't have to load the whole thing into memory every call and unload again. |
03:14 | <@Finerty> | Right, use append, and then stat the file once in a while and archive if necessary. |
03:15 | <@C_tiger> | Ok. |
03:17 | <@C_tiger> | So keep two logs: today, yesterday. ... delete old ones. (I have limited server space apparently and these logs grow at about 5 MB a day. |
03:20 | <@ToxicFrog> | Usual way, IME, is to run a seperate logrotate daemon. |
03:21 | <@ToxicFrog> | But yeah, if you're doing it in your actual program, it's as Vorn said. |
03:22 | | C_tiger [~c_wyz@Nightstar-26417.nycmny.east.verizon.net] has quit [Ping Timeout] |
03:30 | | C_tiger [~c_wyz@96.232.29.ns-13249] has joined #code |
03:30 | | mode/#code [+o C_tiger] by ChanServ |
05:02 | | Finerty is now known as Vornicus |
06:00 | | Vornicus is now known as Vornicus-Latens |
06:34 | | MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Ping Timeout] |
06:34 | | MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code |
06:34 | | mode/#code [+o MyCatVerbs] by ChanServ |
06:35 | | AnnoDomini [AnnoDomini@Nightstar-29572.neoplus.adsl.tpnet.pl] has joined #Code |
06:35 | | mode/#code [+o AnnoDomini] by ChanServ |
07:20 | | AnnoDomini [AnnoDomini@Nightstar-29572.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
07:33 | | gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code |
07:33 | | mode/#code [+o gnolam] by ChanServ |
07:34 | | You're now known as TheWatcher |
08:16 | | You're now known as TheWatcher[afk] |
09:12 | | Reiv [~reaverta@Admin.Nightstar.Net] has joined #Code |
09:13 | | Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout] |
09:13 | | You're now known as TheWatcher |
09:17 | | Reiv is now known as Reiver |
12:49 | | AnnoDomini [~farkoff@Nightstar-29078.neoplus.adsl.tpnet.pl] has joined #Code |
12:49 | | mode/#code [+o AnnoDomini] by ChanServ |
14:06 | | Serah [~Z@87.72.35.ns-26506] has quit [Ping Timeout] |
14:40 | | Vornicus-Latens is now known as Vornicus |
14:59 | | You're now known as TheWatcher[afk] |
15:19 | | Attilla_ [~The.Attil@194.72.70.ns-11849] has joined #code |
15:20 | | Attilla [~The.Attil@194.72.70.ns-11849] has quit [Killed (NickServ (GHOST command used by Attilla_))] |
15:20 | | Attilla_ is now known as Attilla |
15:45 | | You're now known as TheWatcher |
17:06 | | You're now known as TheWatcher[afk] |
17:50 | | AnnoDomini [~farkoff@Nightstar-29078.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
17:53 | | AnnoDomini [AnnoDomini@Nightstar-29078.neoplus.adsl.tpnet.pl] has joined #Code |
17:53 | | mode/#code [+o AnnoDomini] by ChanServ |
18:26 | | AnnoDomini is now known as Steven |
18:26 | | Steven is now known as AbuDhabi |
18:26 | | AbuDhabi is now known as Steve |
20:03 | | Attilla [~The.Attil@194.72.70.ns-11849] has quit [Ping Timeout] |
20:04 | | Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout] |
20:06 | | Vornicus [~vorn@Admin.Nightstar.Net] has joined #code |
20:06 | | mode/#code [+o Vornicus] by ChanServ |
20:08 | | You're now known as TheWatcher |
20:59 | | Chalcedon [~Chalcy@Nightstar-488.ue.woosh.co.nz] has joined #code |
20:59 | | mode/#code [+o Chalcedon] by ChanServ |
21:29 | | Steve is now known as AnnoDomini |
22:27 | | AnnoDomini [AnnoDomini@Nightstar-29078.neoplus.adsl.tpnet.pl] has quit [Quit: Some people have evil spirits. You, you have stupid spirits. Go see shaman. Get hole in head. Big hole. Very big. Huge!] |
22:28 | | You're now known as TheWatcher[T-2] |
22:31 | | You're now known as TheWatcher[zZzZ] |
22:38 | | Attilla [~The.Attil@194.72.70.ns-11849] has joined #code |
22:41 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
22:41 | | Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: Attilla, @Chalcedon |
--- Log closed Mon Apr 14 22:43:29 2008 |
--- Log opened Mon Apr 14 23:16:08 2008 |
23:16 | | TheWatcher[zZzZ] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code |
23:16 | | Irssi: #code: Total of 17 nicks [10 ops, 0 halfops, 0 voices, 7 normal] |
23:16 | | McMartin [~mcmartin@Nightstar-18930.dsl.pltn13.sbcglobal.net] has joined #code |
23:16 | | mode/#code [+o McMartin] by ChanServ |
23:16 | | Irssi: Join to #code was synced in 43 secs |
23:37 | | NSGuest-6114 is now known as gnolam |
--- Log closed Tue Apr 15 00:00:03 2008 |