Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] [tag op=log....



******    message to minivend-users from jojo@buchonline.net     ******

On 29 May, Barry Treahy wrote:
> ******    message to minivend-users from Barry Treahy <Barry@BSTent.com>     ******
> 
> Cameron, I would have preferred it to direct to a different file, but as I said it was a crude fix which
> works good enough for our purposes.  The tag usage is like:
> 
>    [log_access message='login-reconnect: username:[value mv_username] page:@@MV_PAGE@@']
> 
> where the text can be another you like and the usertag for log_access is:
> 
> UserTag log_access AddAttr
> UserTag log_access Routine <<EOF3
> sub {
>   my ($opt) = @_;
>   my $output;
>   $output = $opt->{message};
>    ::logError($output);
>    $Vend::Session->{'last_error'} = '';
> }
> EOF3
> 
> which basically dumps an entry into the catalogs error.log file.  If I could get the [tag log] to work
> on 3.14-5, I would have preferred to send it to its own file, but I haven't the time to slow down for
> little details that do not work well.
> 
> Barry
[DEL]


No time? In MV 3.14-5, try


[tag file="pages/log/logfile.log" op=log interpolate=1] 
Here we are in the log file "logfile.log", which is stored at
..../catalogs/myshop/pages/log
[/tag]

Make sure, you create the directory "pages/log" first.

I hope, this helps you!

Regards,

	Joachim




>> jojo@buchonline.net wrote:
>>
>> > ******    message to minivend-users from jojo@buchonline.net     ******
>> >
>> > Hi list,
>> >
>> > after changing from MV3 to MV4
>> >
>> > [tag file="<filename>" op=log interpolate=1]
>> >
>> > doesnŽ work. After answer from Mike to use
>> >
>> > [tag arg="<filename>" op=log interpolate=1]
>> >
>> > instead, it works. After updating from MV4.03 to MV4.04,
>> >
>> > [tag arg="<filename>" op=log interpolate=1]
>> >
>> > doesnŽ work. After rewriting the codes to
>> >
>> > [tag file="<filename>" op=log interpolate=1]



-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
45886 Gelsenkirchen         FAX: 0209 1671449

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: