[Live-devel] Logging usage

Ross Finlayson finlayson at live555.com
Tue Nov 24 09:22:09 PST 2020



> On Nov 24, 2020, at 12:56 PM, Jim Ham <jimham at porcine.com> wrote:
> 
> I'm using live555MediaServer. I need to know which files are being served, so I added a very simple logging function.
> 
> diff -r live/liveMedia/RTSPServer.cpp live.new/liveMedia/RTSPServer.cpp
> 1319a1320,1329
> >       // simple logging added by jeh 11/23/2020
> >       FILE* logfid = fopen("live555.log", "a" ) ;
> >       if (logfid != NULL) {
> >       time_t tm = time(NULL) ;
> >       char * tmstr = ctime(&tm ) ;
> >       fwrite( streamName, 1, strlen(streamName), logfid ) ;
> >       fwrite (", ",1,2,logfid) ;
> >       fwrite( tmstr, 1, strlen(tmstr), logfid ) ;
> >       fclose( logfid ) ;
> >       }

Jim,

Could you please resend this as a ‘contextual’ diff (using “diff -c”), so I can see exactly where in the code you added this?


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list