elnode should allow logging to processes and files #9

Open
nicferrier opened this Issue May 7, 2012 · 1 comment

Comments

Projects
None yet
1 participant
@nicferrier
Owner

nicferrier commented May 7, 2012

Elnode needs to be able to send errors and accesses to files and to processes instead of just buffers.

Elnode's current log handling is just buffers through elnode-log-access function and the elnode-error macro.

There tends to be 1 error log overall (accessed through the function elnode--get-error-log-buffer) and 1 access log per dispatcher instance (which is per application, normally) through elnode-hostpath-dispatcher.

Both deal with buffers only.

Processes

One should be able to specify a program name that could be invoked to handle log messages. Ideally it would be possible to maintain a connection to that program for a long period of time, to log many messages through it. If it fails it should automatically restart.

Files

There should be files backing up the log buffers. The implementation of these could be efficient through append-to-file and comint-truncate-buffer (which might need to be copied).

How to specify the file names is the biggest problem.

@ghost ghost assigned nicferrier May 7, 2012

@nicferrier

This comment has been minimized.

Show comment Hide comment
@nicferrier

nicferrier May 11, 2012

Owner

The files stuff is done. elnode-log-access and elnode-error both now go through a general buffer logging function that constantly writes the buffer.

Owner

nicferrier commented May 11, 2012

The files stuff is done. elnode-log-access and elnode-error both now go through a general buffer logging function that constantly writes the buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment