Start a new topic

Add txt logging in Rebex terminal

When using rebex for terminal access, the logs are always with ANSI codes, so that they are re-playable.

In my case, I have no use for the ANSI encoded logs, and I would love to only see the TXT based logs.

There is an option to 'Create text file from logging', then then the ANS files are still there.


Can we get an option to choose the logtype ? ANSI or CLEARTEXT ?


Seems like it can be done out of the box, in stead of the RT 'create text file'


https://www.rebex.net/ssh-shell/features/logging.aspx


Built-in log writers Text file

To log into a text file, use FileLogWriter:

 

C#VB.NET
// start logging to a file at debug level
ssh.LogWriter = new Rebex.FileLogWriter(
    @"C:\MyData\log.txt", Rebex.LogLevel.Debug);


Pieter

1 Comment

Hi Pieter,


if it's really the file log you are looking for, it's already possible:

https://docs.royalapps.com/r2023/royalts/reference/connections/terminal-rebex.html#logging


Note, that file logging is not the same as output recording. In rebex, output recording is in a special ANSI file format which can be converted to plain text.


Regards,
Stefan

Login or Signup to post a comment