Logging Explained

balder
By balder in Guides,
Logging Explained Ok below im going to try and explain the varuios Logging options. I am attempting top do this by backwards engineering the logging page and possibly takeing a look at the source. I am therefore bound to miss something so post it below and ill update this post cheers. On the Logs property filed you have four boxes Directory -- The Directory that the logs area stored in
Logs -- A list of logs that you can store/collect. I tick indicates enabled
Log Format -- What information to log
Filename -- The Filename of the log
Log Formats Here are the date and time log formats %a - Abbreviated weekday name
%A - Full weekday name
%b - Abbreviated month name
%B - Full month name
%c - Date and time representation appropriate for locale
%d - Day of month as decimal number (01 - 31)
%H - Hour in 24-hour format (00 - 23)
%I - Hour in 12-hour format (01 - 12)
%j - Day of year as decimal number (001 - 366)
%m - Month as decimal number (01 - 12)
%M - Minute as decimal number (00 - 59)
%p - Current locale's A.M./P.M. indicator for 12-hour clock
%S - Second as decimal number (00 - 59)
%U - Week of year as decimal number, with Sunday as first day of week (00 - 53)
%w - Weekday as decimal number (0 - 6; Sunday is 0)
%W - Week of year as decimal number, with Monday as first day of week (00 - 53)
%x - Date representation for current locale
%X - Time representation for current locale
%y - Year without century, as decimal number (00 - 99)
%Y - Year with century, as decimal number
%z, %Z - Either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown
%% - Percent sign
Parameters valid for file transfer %[userNI] - Users Nick name
%[userI4] - Users IP address
%[hub] - Hub Name
%[hubURL"] - Hub URL
%[fileSI"] - File Size
%[fileSIshort"] File size short form (guesing this is KB/MB/GB)
%[fileSIchunk"] - This appears to be the chunk size
%[fileSIchunkshort"] = Chunk size in short form
%[fileSIactual] = Get Actual file size bytes
%[fileSIactualshort] - Get actual file size in short form
%[speed] - Average Speed of transfer
%[time] - time of log transaction
%[fileTR] - file TTH
upload parameters %[source] - file being uploaded
download parameters %[target] - file name being saved
Parameters for Webserver logging %[file] - file been requested
%[ip] - IP addres making request
Parameters avalible everywhere %[message] - prints the message sent this is context sensetive
%[extra] - couldn't find this parameter in the source so not sure what it dose if anything
Its possible that the 'Parameters valid for file transfer' are valid in all context, some of them can be used in the Filename. Ok so an example. the default Log Private message is Therefore for every message the following will be logged [ - a left hand bracket anything that isn't transformed is taken as a literal character %Y - Year with century, as decimal number %m - Month as decimal number (01 - 12) %d - Day of month as decimal number (01 - 31) %H - Hour in 24-hour format (00 - 23) : - A colon, %M - Minute as decimal number (00 - 59) %[extra] - includes IP and country code of the user, if related options are enabled, and this info is available ] - a right hand bracket %[message] - the message sent. This will produce a log entry like the one below ok now the filename this expands to PM\ - this is taken as a literal and therefor sets logging to go into a subdirectory under the main logging directory. eg C:\Program Files\ApexDC++\Logs\PM\ %B - Full month name - - A literal dash '-' %Y - Year with century, as decimal number \ - ba back slash meaning another sub directory %[userNI] - the username of the person in the pm .log - a file extention to put on the end of the file again this is a literal and could be .txt, .tmp or anything you want. Therefore the above log is saved in
  • 3 replies