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 <[email protected]> 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/