rejetto forum

Software => HFS ~ HTTP File Server => Beta => Topic started by: r][m on April 28, 2009, 04:43:00 PM

Title: deletion log
Post by: r][m on April 28, 2009, 04:43:00 PM
In 236 Log:
Delete is a great addition to the log, but.....
The delete record is displayed in the log window and log file as:
4/28/09 11:16:45 AM user@192.168.1.100:1132{M1 LAN} Deleted files in /Server/Shared_Files/
> Print Screen.txt
> Start-Up.wav
> xld.LastValue.zip
Should be:
4/28/09 11:16:45 AM user@192.168.1.100:1132{M1 LAN} Deleted files in /Server/Shared_Files/ > Print Screen.txt > Start-Up.wav > xld.LastValue.zip
All on one line. Really screws up the log file.

Title: deletion log
Post by: SilentPliz on April 28, 2009, 04:53:41 PM
This is a problem of presentation or standard format of log?
For me, to choose, I prefer the multilines solution.

I imagine 60 files on 1 line...  ;D
Title: deletion log
Post by: r][m on April 28, 2009, 05:06:31 PM
This is a problem of presentation or standard format of log?
For me, to choose, I prefer the multilines solution.

I imagine 60 files on 1 line...  ;D
I see your point, but it doesn't work with any sort of log analysis as a list.
Recording log data is useless unless you have a way of harvesting the data.
Imagine searching through a 2,000 lines of log to find an entry.
When its all on one line it should just wrap your 60 items, but they will be placed
in the proper section. As a list they fall in the same section as date - big mess.

It could be very useful if archive logged the same way  :)
Title: deletion log
Post by: Mars on April 28, 2009, 05:59:28 PM
This is a problem of presentation or standard format of log?
For me, to choose, I prefer the multilines solution.

I imagine 60 files on 1 line...  ;D
I see your point, but it doesn't work with any sort of log analysis as a list.
Recording log data is useless unless you have a way of harvesting the data.
Imagine searching through a 2,000 lines of log to find an entry.
When its all on one line it should just wrap your 60 items, but they will be placed
in the proper section. As a list they fall in the same section as date - big mess.

It could be very useful if archive logged the same way  :)

if you use an external software to analyze the log, here is a solution to mark the end of deleted informations

Quote
    if logDeletionsChk.checked and assigned(done) then
      add2log('Deleted files in '+url+CRLF+join(CRLF, done)+CRLF+'End of Deleted files in '+url+CRLF), data);
    if logDeletionsChk.checked and assigned(errors) then
      add2log('Failed deletion in '+url+CRLF+join(CRLF, errors)+CRLF+'End of Failed deletion in '+url+CRLF), data);
    end; // deletion
Title: Re: deletion log
Post by: rejetto on April 30, 2009, 10:43:53 AM
i splitted this topic so we can discuss it without digging old betas topics.
i will now publish #237 and we'll continue after.
Title: Re: deletion log
Post by: r][m on May 01, 2009, 05:54:01 PM
Presently have Delete unchecked in 237
It produces log entrys out of sequence as in SS
attached.
Title: Re: deletion log
Post by: rejetto on May 04, 2009, 01:26:12 AM
you had it unchecked, the restarted hfs, and because of a bug, it was enabled again.
it will be fixed in next build.
Title: Re: deletion log
Post by: rejetto on May 04, 2009, 01:29:41 AM
I see your point, but it doesn't work with any sort of log analysis as a list.
Recording log data is useless unless you have a way of harvesting the data.
Imagine searching through a 2,000 lines of log to find an entry.
When its all on one line it should just wrap your 60 items, but they will be placed
in the proper section. As a list they fall in the same section as date - big mess.

i can suggest an option to convert all "blue lines" to a single tabbed line in the standard log file.

Quote
It could be very useful if archive logged the same way  :)

would it?
Title: Re: deletion log
Post by: r][m on May 04, 2009, 03:21:00 AM
you had it unchecked, the restarted hfs, and because of a bug, it was enabled again.
it will be fixed in next build.
I don't understand what you mean?
i can suggest an option to convert all "blue lines" to a single tabbed line in the standard log file.
I think it would be best to keep the log output in a consistent format.
Quote
would it?
The log lists files downloaded one at a time, now delete produces a log list, why not a
list of whats in a down loaded archive? (if its possible?)
Title: Re: deletion log
Post by: rejetto on May 04, 2009, 06:43:08 PM
I don't understand what you mean?

there is a bug, but it's not the one i initially deduced by your report.

Quote
I think it would be best to keep the log output in a consistent format.

the output you require doesn't seem to be convenient for human reading.
hfs is designed also for transient usage, where only human reading takes place.

Quote
The log lists files downloaded one at a time, now delete produces a log list, why not a
list of whats in a down loaded archive? (if its possible?)

reasonable.
Title: Re: deletion log
Post by: bacter on May 04, 2009, 09:22:19 PM
perhaps not to complicated:

hfs could use a redefinable macro for delete- and download-log in the format rejetto and most users prefere, and those who want could set the macro with a {.set|deletelog|%timestamp% %ip% %user% deleted $1 $2 $3 $4.. .} or something similar that would be used instead of the default format ?
Title: Re: deletion log
Post by: r][m on May 11, 2009, 04:00:21 PM
i can suggest an option to convert all "blue lines" to a single tabbed line in the standard log file.
How could I do this?
Title: Re: deletion log
Post by: rejetto on May 11, 2009, 04:12:17 PM
i can suggest an option to convert all "blue lines" to a single tabbed line in the standard log file.
How could I do this?

you can't. i suggested as solution. i would make such option, if it's a good solution.
Title: Re: deletion log
Post by: r][m on May 12, 2009, 05:03:44 AM
you can't. i suggested as solution. i would make such option, if it's a good solution.
In events, maybe?
Sounds good to me.  :)
Title: Re: deletion log
Post by: rejetto on May 12, 2009, 10:27:40 AM
no, it would be an option inside the log menu.
like "Tabbed instead of multi-line for the log file".
Title: Re: deletion log
Post by: r][m on May 12, 2009, 02:44:28 PM
no, it would be an option inside the log menu.
like "Tabbed instead of multi-line for the log file".
OK, sounds like it would work for log analysis.
Be happy to try it, when you have it ready.
Title: Re: deletion log
Post by: r][m on May 22, 2009, 03:28:50 PM
no, it would be an option inside the log menu.
like "Tabbed instead of multi-line for the log file".
Any progress on this ?
Title: Re: deletion log
Post by: rejetto on May 23, 2009, 01:39:13 AM
no, it was delayed a bit