It has become a bit of a problem to get logs from different users; users
run nodes, sometimes with auto-update scripts, and leave them, so I
can't get logs from them. So, how can we automate this? Simple testnet
functionality, of course:

Prerequisites:
- All log files are compressed, even on Windows, even if we don't have a
  native gzip. This is a good idea in any case. Logs are compressed as
  they are written, and also written as plaintext; when the log is
  rotated, we simply delete the plaintext version.
- Later on, not essential, but would allow unattended testnet nodes:
  Logfile disk space usage management.
- Log files divided into smaller chunks. Possibly much smaller chunks.
  10 minute chunks seem a reasonable compromize.

Very basic testnet functionality:
- Each node has a testnet flag. If it is enabled, it can only connect to
  other testnet nodes. If it is disabled, it can only connect to other
  non-testnet nodes.
- Each node with the testnet flag enabled runs a simple TCP server. This
  will have a very limited set of commands.

  LIST - show all logs currently available: time, and size.
  GET <time> - parse the given time, return the (compressed) log
  containing that time period, if any.
-- 
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/tech/attachments/20051207/0a683f67/attachment.pgp>

Reply via email to