indexing description: "Screen log facilities for test results" status: "See note at end of class" date: "$Date$" revision: "$Revision$" class SCREEN_LOG inherit LOG_FACILITY redefine output_device end create make, make_with_stdout, make_with_stderr feature {NONE} -- Initialization make_with_stderr is -- Create log to standard error. do set_stderr ensure stderr_set: is_stderr end make, make_with_stdout is -- Create log to standard output. do set_stdout ensure stdout_set: is_stdout end feature -- Status report is_stderr: BOOLEAN is -- Output on standard error? do Result := output_device = Io.error end is_stdout: BOOLEAN is -- Output on standard output? do Result := output_device = Io.output end feature -- Status setting set_stderr is -- Set output to standard error. do output_device := Io.error ensure output_to_stderr: output_device = Io.error end set_stdout is -- Set output to standard output. do output_device := Io.output ensure output_to_stdout: output_device = Io.output end feature {NONE} -- Implementation output_device: PLAIN_TEXT_FILE -- Output device for log invariant well_defined_state: is_stdout xor is_stderr end -- class SCREEN_LOG --|---------------------------------------------------------------------- --| EiffelTest: Reusable components for developing unit tests. --| Copyright (C) 2000-2001 Interactive Software Engineering Inc (ISE). --| EiffelTest may be used by anyone as FREE SOFTWARE to --| develop any product, public-domain or commercial, without --| payment to ISE, under the terms of the ISE Free Eiffel Library --| License (IFELL) at http://eiffel.com/products/base/license.html. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 270 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support e-mail --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------------