brightio / penelope

Penelope Shell Handler
GNU General Public License v3.0
677 stars 93 forks source link

Log file encoding #29

Closed funkyfliam closed 3 weeks ago

funkyfliam commented 3 weeks ago

What file encoding do the log files use? Any way to get it to log without any formatting escape codes? Thanks!

image

brightio commented 3 weeks ago

Hi @funkyfliam. These are ANSII escape codes for coloring. You can "cat" the file to see the colored timestamp, or run penelope with -T to log without timestamps.

funkyfliam commented 3 weeks ago

Thank you very much for the fast response. Would an additional option be possible to log without color codes? I'd like to keep the timestamps in the logs where possible. Not a massive problem if it's too much effort - can strip them externally in post processing

brightio commented 3 weeks ago

That's a good suggestion. I reopened the issue and i will notify you once this feature is ready.

brightio commented 3 weeks ago

@funkyfliam the option is implemented. Just use the -CT switch.