Closed AlexanderRitter02 closed 4 years ago
ok i will revert this! thanks for feedback
Thanks, I'm currently looking into generating html
files with Steam styling from your (awesome) logs.
I may give more feedback soon, good to see your appreciating it. Currently the project is just in it's beginnings however.
That idea gave me another idea, like being able to see the logs inside the program with the same style of steam 👀
That's what I'm trying to archive. :wink: But a program UI is overkill for me (I'm learning a lot new). So I decided to go with the HTML approach. The idea for html export is from this Discord Logger, output pretty much looks like you have Discord open.
And a plus for HTML+CSS is that you can open it on any browser and propably many years from now.
But either way keeping the original .txt
logs is the safest option for archiving.
Enhancement
Problem
In Steam you can create a new line in a single message by doing SHIFT+Tab in the message field.
Currently the logger removes the new line and logs the message in the following way:
Line1Line2
This is not ideal because message history can't be reproduced in an authentic way. It especially affects third-party programs that want to replay chat history or for example create a graphical representation that looks like the original chat.
Solution
This [example-multiline.txt] is how I think it should be saved. It's the same format WhatsApp uses in its export functionality.
Code (propably)
Do regex magic and change the following line: https://github.com/sp0ok3r/ChatLogger/blob/802f4d35fdf87b752cd1c65270a68c673c048e23/ChatLogger/AccountLogin.cs#L345