Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:
indexing description: "A flexible layout using a pattern" usage: "[ The conversion pattern is closely related to the printf function in C. is composed of literal text and format control expression called conversion specifiers. Each conversion specifier starts with an @ character and is followed by optional format modifiers and a conversion character. The conversion character specifies the type of data, e.g., category, priority, date, message. The format modifiers control such things as field width, padding, left and right justification. ]" 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_PATTERN_LAYOUT create make (pattern: STRING) -- Create new pattern layout using 'new_pattern' to format -- the message require pattern_exists: pattern /= void feature -- Initialisation make (pattern: STRING) -- Create new pattern layout using 'new_pattern' to format -- the message require pattern_exists: pattern /= void feature -- Rendering footer: STRING -- Format a footer for this layout. -- (from L4E_SIMPLE_LAYOUT) ensure -- from L4E_LAYOUT footer_exists: Result /= void format (event: L4E_EVENT): STRING -- Format contents of 'event' according to this layout's -- formatting rules. -- Apply all converters to event in order. require -- from L4E_LAYOUT event_exists: event /= void ensure -- from L4E_LAYOUT formatted_exists: Result /= void header: STRING -- Format a header for this layout. -- (from L4E_SIMPLE_LAYOUT) ensure -- from L4E_LAYOUT header_exists: Result /= void invariant -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) end -- class L4E_PATTERN_LAYOUT
Classes Clusters Cluster hierarchy Relations Contracts Flat contracts Go to:

Goanna Log4E -- Copyright © 2002 Glenn Maughan