I agree that a (say) /flushlogs command might be useful.

In looking for new stuff about logfiles in versions.txt I noticed that there's a 'Merge' option in the logfile dialogue. You could use that.

I had a go at writing a scripted /flushlogs, and now realise how much of a pain it is. My initial attempt had been a simple:

Code:
//var %lfn = $chan(#).logfile | log off | log on -f %lfn


But you end up with logfile names like "#test.network.1.network.1.network.1.log" after a few iterations!

And of course that only works for channels...

Code:
//var %re = $+(/(.*)\.,$network,\.\d+\.log/), %lfn = $+($regsubex($chan(#).logfile,%re,\1),.log) | echo -a %lfn | log off $$chan | log on $chan -f %lfn


is a bit better...


Sais