-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
On logging #95
Comments
Each line from the raw IRC stream is terminated by a carriage return and a line feed character (frequently referred to as In most practical applications for output logging, the raw steam data will be parsed/modified; therefore, printing this character will cause little interference to the end-user. I am open to removing these characters though if you have particular example application in mind where this would cause problems. There also appears to to be a duplicate line feed (causing the blank line between printed lines), which can be fixed by removing the one also printed by the fprintf() function: Line 397 in 9370902
If you need a quick short-term solution though to remove the
Hope this information helps. |
There also appears to to be a duplicate line feed (causing the blank line between printed lines), which can be fixed by removing the one also printed by the fprintf() function:
I think this change should be implemented, since IRC commands already end with a newline. Plus, if someone is trying to use the log to debug an IRC command that does not end with a newline, they may think that it does since the print statement appends one, which could lead to problems. |
The extra new line feed has been removed per #96. I think it makes sense to leave the |
@mcpcpc Thanks for the info! And while we are here, one more thought: may be the log entries should also contain timestamps, what do you think? When browsing a log from time to time to check for the missed conversations, timestamps could help to understand where exactly are we right now... (I'm sort of trying to use the log file as you've suggested, grepping for #channel PRIVMSGs). |
I was wondering when someone was going to request this. lol. Added per 20a7e3b and will be released with 0.2.3 later today. Format will be as such:
For example:
|
:) Thanks! |
When using
-o
option,kirc
seems to handle line breaks in a strange way: it inserts^M
followed by an empty line, like this (the log file opened in Vim):Is this an intended behaviour? :)
v0.2.2 running on Linux.
The text was updated successfully, but these errors were encountered: