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 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

"Cameron B. Prince" wrote:

> ******    message to minivend-users from "Cameron B. Prince" <cbp@InternetExpertsLLC.com>     ******
>
> Barry,
>
> Would you share your usertag example for access logging?
>
> I am sure myself and others would find it very useful.
>
> Thanks,
>
> Cameron
>
> -----Original Message-----
> From: owner-minivend-users@minivend.com
> [mailto:owner-minivend-users@minivend.com]On Behalf Of Barry Treahy
> Sent: Sunday, May 28, 2000 12:27 AM
> To: minivend-users@minivend.com
> Subject: Re: [mv] [tag op=log....
>
> ******    message to minivend-users from Barry Treahy <Barry@BSTent.com>
> ******
>
> I made a basic comment/complaint about this 10 days ago hoping that Mike
> would
> jump in, but to no avail.
>
> I can understand parameters being position if they are not named, but named
> parameters should work regardless of the order and there seems to be
> specific
> problems with the tag log in both 3.14-5 and 4.04.  I was pulling my hair
> out
> attempting to do page and activity logging and ultimately went to a usertag.
> To
> Mike's credit, the usertags really save my rear when I either cannot figure
> out MV
> or it doesn't appear to function as documented.
>
> Barry
>
> 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]
> >
> > it works. I´ve read the WHATSNEWS! But couldn´t see any hints about
> > this. Any comment?
> >
> > Thanks!
> >
> > Joachim
> >
> > --
> > 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
>
> -
> 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
>
> -
> 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

-
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: