Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elnode should allow logging to processes and files #9

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

elnode should allow logging to processes and files #9

nicferrier opened this issue May 7, 2012 · 1 comment
Assignees

Comments

@nicferrier
Copy link
Owner

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
Copy link
Owner Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant