Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:
indexing description: "Logging appender that writes to standard a file that is rolled when it receives a message via a socket." project: "Project Goanna <http://sourceforge.net/projects/goanna>" library: "log4e" date: "$Date$" revision: "$Revision$" author: "Glenn Maughan <glennmaughan@goanna.info>" copyright: "Copyright (c) 2002 Glenn Maughan" license: "Eiffel Forum License v1 (see forum.txt)." class interface L4E_EXTERNALLY_ROLLED_FILE_APPENDER create make feature -- Initialisation make (new_name: STRING; port, number_of_backups: INTEGER; appending: BOOLEAN) -- Create a new file appender on the file -- with 'new_name'. Roll the log over when the message "RollOver" is received on -- a socket listening on 'port'. Keep a maximum of 'number_of_backups' backup files. -- Append to an existing log file if 'appending'. require name_exists: new_name /= void name_not_empty: not new_name.is_empty sensible_port: port >= 1 positive_number_of_backups: number_of_backups >= 0 ensure log_file_open: stream.is_open_write feature -- Basic Operations do_append (event: L4E_EVENT) -- Log event on this appender. close -- Release any resources for this appender. end -- class L4E_EXTERNALLY_ROLLED_FILE_APPENDER
Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:

Goanna Log4E -- Copyright © 2002 Glenn Maughan