brightio / penelope

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

Log file encoding #29

Closed funkyfliam closed 1 month ago

funkyfliam commented 1 month 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 1 month 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 1 month 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 1 month ago

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

brightio commented 1 month ago

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