Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Log files with "log off" and "log on"


From   "Friedrich Huebler" <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: Log files with "log off" and "log on"
Date   Fri, 7 Mar 2008 13:52:24 -0500

Stata tech support explained that one can use -quietly log off- and
-quietly log on- to suspend and resume logging. With these commands,
one line still appears in the log file:

. quietly log off

I found out that this line and the following blank line can be removed
with -filefilter-.

. filefilter log.txt log2.txt, from(". quietly log off\r\n\r\n") to("") replace

log2.txt has no traces of the commands used to suspend and resume logging.

Friedrich

On Thu, Mar 6, 2008 at 10:51 AM, Friedrich Huebler <fhuebler@gmail.com> wrote:
> When logging is suspended and resumed with -log off- and -log on-, the log
> file contains lines similar to those below.
>
> . log off
>        log:  C:\log.txt
>   log type:  text
>  paused on:   6 Mar 2008, 10:39:57
>  ----------------------------------
> ----------------------------------
>        log:  C:\log.txt
>   log type:  text
> resumed on:   6 Mar 2008, 10:40:00
>
> Is there a way to suppress these messages so that they are not included in
> the log file?
>
> Thanks,
>
> Friedrich
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index