Article View: pl.comp.lang.perl
Article #52577Re: Log::Log4perl i Test::More, użycie wspólnego pliku
From: Piecia aka dracorp
Date: Tue, 22 Sep 2015 13:55
Date: Tue, 22 Sep 2015 13:55
8 lines
1836 bytes
1836 bytes
Poniekąd to "rozwiązałem" używając tee w skrypcie: * dla Log::Log4perl otworzyłem plik z trybem append * dla Test::More utworzyłem uchwyt do polecenia "| tee --append $log_file", ustawiłem $OUTPUT_AUTOFLUSH = 1 ($|) i wybrałem STDOUT za pomocą select. W praktyce działa, ale czasem informacje pojawiają się nie tam gdzie trzeba. Na szczęście jest to sporadyczne. Przy testowaniu na prostym skrypcie o dziwo wyglądało to znacznie gorzej. -- Pozdrawiam Piotr
Technical Details
Message-ID:
<d397af0c-5ec8-4d4e-9957-c22c22113422@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!kq10no6790590igb.0!news-out.google.com!f6ni12575igi.0!nntp.google.com!kq10no7590649igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<56a8aa89-a5f1-47ac-9725-e785f169bf39@googlegroups.com>Show Full Headers
Complete Article Headers
X-Received: by 10.107.7.87 with SMTP id 84mr26724482ioh.9.1442930139109; Tue, 22 Sep 2015 06:55:39 -0700 (PDT) X-Received: by 10.50.39.104 with SMTP id o8mr183821igk.3.1442930139090; Tue, 22 Sep 2015 06:55:39 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.supermedia.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!kq10no6790590igb.0!news-out.google.com!f6ni12575igi.0!nntp.google.com!kq10no7590649igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.perl Date: Tue, 22 Sep 2015 06:55:38 -0700 (PDT) In-Reply-To: <56a8aa89-a5f1-47ac-9725-e785f169bf39@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.60.216.126; posting-account=ohlE0woAAADrpn6HW1551lk3wKkUxvh3 NNTP-Posting-Host: 195.60.216.126 References: <56a8aa89-a5f1-47ac-9725-e785f169bf39@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <d397af0c-5ec8-4d4e-9957-c22c22113422@googlegroups.com> Subject: Re: Log::Log4perl i Test::More, użycie wspólnego pliku From: Piecia aka dracorp <piotr.rogoza@wp.eu> Injection-Date: Tue, 22 Sep 2015 13:55:39 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit