I have to create a telnet client which should be able to connect to an ip address specified and capture the logs from the standard output.

Can anyone give an idea to go about it.

Regards,
Neha