Opened 16 years ago

Closed 16 years ago

#37 closed defect (fixed)

Write logs of users' interactions with archive

Reported by: MatthewWhiting Owned by: DavidSmith
Priority: major Component: web archive
Version: Keywords:
Cc:

Description (last modified by MatthewWhiting)

We would like to know what is happening with the archive, so we should have the archive write to a log file when users make a query and download data.

The log entry should have things like date, time, username/email, query string, download size, whether they viewed profiles, ...

Dick's suggestion -- just write all out in one long text line, with defined columns that could be searched by awk (for instance).

Change History (2)

comment:1 Changed 16 years ago by MatthewWhiting

Description: modified (diff)
Owner: changed from MatthewWhiting to DavidSmith

comment:2 Changed 16 years ago by DavidSmith

Resolution: fixed
Status: newclosed

The file logger.php already existed with logging functions,

I extended logger_write to take the following parameters

logger_write( $username, $action, $param1, $param2, $param3 );

The sequence in the log file is, date,time,username,action,param1,param2,param3 and added several wrapper functions

logger_login( $username, $method, $success ); logger_query( $username, $query, $num_results ); logger_download( $username, $dir, $filename, $size );

Added calls to use these wrapper functions in

index.php (logging in) query.php (query and download) conesearch.php (query)

Note: See TracTickets for help on using tickets.