Re: [Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Evan Simpson

- Original Message -
From: Andy McKay <[EMAIL PROTECTED]>
> Im trying to run Zope on Win2k and use the stupid_file_logger. No matter
> what I seem to do to the command line or z2.py I still get the logs going
to
> stderr (ie ms-dos console). Can anyone help?
>
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
STUPID_FILE_LOGGER="c:\Zope.log"
> %1 %2 %3 %4 %5 %6 %7 %8 %9
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
"STUPID_FILE_LOGGER=c:\zope.log"
> %1 %2 %3 %4 %5 %6 %7 %8 %9

Lose the "-D".  Debug mode *always* logs to stderr, regardless of any other
logging arrangements.

Cheers,

Evan @ digicool & 4-am


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay

The document by Amos (http://www.zope.org/Documentation/Misc/LOGGING.txt)
says set the
"STUPID_FILE_LOGGER" variable. That doesnt work but STUPID_LOG_FILE does. I
just set it in the command line:

"C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_LOG_FILE="C:\zope.log"

Thanks.

- Original Message -
From: "Loren Stafford" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 11:04 AM
Subject: RE: [Zope] STUPID_FILE_LOGGER


> I develop on Win98 with MKS tools. Using the MKS shell, this is what works
> for me, but may not be relevnt to you:
>
>  C:/Zope220b3/bin/python.exe C:/Zope220b3/z2.py -D
> STUPID_LOG_FILE=C:/Zope220b3/var/stupidlog.txt
>
> Before I started using MKS shell, I just set STUPID_LOG_FILE in the
> environment before starting Zope:
>
>set STUPID_LOG_FILE=C:\Zope\var\zopeapp.log
>
> If you don't find another solution, try the FrozenLogger product, which
sets
> STUPID_LOG_FILE for you from inside Zope.
> http://www.zope.org/Members/lstaffor/FrozenLogger
>
> -- Loren
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy
> > McKay
> > Sent: Tuesday, June 27, 2000 08:59
> > To: [EMAIL PROTECTED]
> > Subject: [Zope] STUPID_FILE_LOGGER
> >
> >
> > Hi,
> >
> > Im trying to run Zope on Win2k and use the stupid_file_logger. No matter
> > what I seem to do to the command line or z2.py I still get the
> > logs going to
> > stderr (ie ms-dos console). Can anyone help?
> >
> > Here are command lines I have tried:
> >
> > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> > STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9
> > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> > STUPID_FILE_LOGGER="c:\Zope.log"
> > %1 %2 %3 %4 %5 %6 %7 %8 %9
> > "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> > "STUPID_FILE_LOGGER=c:\zope.log"
> > %1 %2 %3 %4 %5 %6 %7 %8 %9
> >
> > etc..
> >
> > I was hoping to write my own Logger, but when they didnt work to well I
> > thought using the stupid_file_logger would suffice...
> >
> > Thanks.
> >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Loren Stafford

I develop on Win98 with MKS tools. Using the MKS shell, this is what works
for me, but may not be relevnt to you:

 C:/Zope220b3/bin/python.exe C:/Zope220b3/z2.py -D
STUPID_LOG_FILE=C:/Zope220b3/var/stupidlog.txt

Before I started using MKS shell, I just set STUPID_LOG_FILE in the
environment before starting Zope:

   set STUPID_LOG_FILE=C:\Zope\var\zopeapp.log

If you don't find another solution, try the FrozenLogger product, which sets
STUPID_LOG_FILE for you from inside Zope.
http://www.zope.org/Members/lstaffor/FrozenLogger

-- Loren

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andy
> McKay
> Sent: Tuesday, June 27, 2000 08:59
> To: [EMAIL PROTECTED]
> Subject: [Zope] STUPID_FILE_LOGGER
>
>
> Hi,
>
> Im trying to run Zope on Win2k and use the stupid_file_logger. No matter
> what I seem to do to the command line or z2.py I still get the
> logs going to
> stderr (ie ms-dos console). Can anyone help?
>
> Here are command lines I have tried:
>
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> STUPID_FILE_LOGGER="c:\Zope.log"
> %1 %2 %3 %4 %5 %6 %7 %8 %9
> "C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
> "STUPID_FILE_LOGGER=c:\zope.log"
> %1 %2 %3 %4 %5 %6 %7 %8 %9
>
> etc..
>
> I was hoping to write my own Logger, but when they didnt work to well I
> thought using the stupid_file_logger would suffice...
>
> Thanks.
>
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] STUPID_FILE_LOGGER

2000-06-27 Thread Andy McKay

Hi,

Im trying to run Zope on Win2k and use the stupid_file_logger. No matter
what I seem to do to the command line or z2.py I still get the logs going to
stderr (ie ms-dos console). Can anyone help?

Here are command lines I have tried:

"C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D
STUPID_FILE_LOGGER="c:\\zope.log" %1 %2 %3 %4 %5 %6 %7 %8 %9
"C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D STUPID_FILE_LOGGER="c:\Zope.log"
%1 %2 %3 %4 %5 %6 %7 %8 %9
"C:\Zope\bin\python.exe" "C:\Zope\z2.py" -D "STUPID_FILE_LOGGER=c:\zope.log"
%1 %2 %3 %4 %5 %6 %7 %8 %9

etc..

I was hoping to write my own Logger, but when they didnt work to well I
thought using the stupid_file_logger would suffice...

Thanks.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )