C++ modify code

Need basic code changed to add debug output to a txt file.

Existing code is for a linux based vnc repeater is compiled using 'make' command on linux server, and creates output to the screen, using 'debug'.

I need all output also added to a log file as follows :

Log file name will be located in the /logs path.

The log file name will be "log_ccyymmdd" ( ccyymmdd = todays date )

each entry in the log file should be formatted as follows :

ccyymmdd hh:mm:ss xxxxxx text

where : ccyymmdd = date

hh:mm:ss = time

xxxxxx = IDcode of connection (session ID)

text = copy of debug text

Additional code must also be added that logs all traffic passing through the router for each active IDcode, in the format :

ccyymmdd hh:mm:ss xxxxxx direction bytes

where : direction = > ( svr to viewer ) or < ( viewer to svr )

bytes = the size of the data passing through.

All code changes MUST be clearly marked and commented.

Skills: C Programming

See more: ccyymmdd, no code, id to code, code 1, & code, server code, vnc, svr, modify code, mm, linux c++, linux C, linux + c, hh, copy code, code, code C, c linux, c basic, basic C++, vnc repeater code, code basic, linux debug, screen connection, code entry

About the Employer:
( 5 reviews ) East Rand, South Africa

Project ID: #238112