indexing
description: "Logging logger."
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_LOGGER
create
make
feature
name: STRING
priority: L4E_PRIORITY
parent: L4E_LOGGER
context: L4E_HIERARCHY
is_additive: BOOLEAN
is_priority_set: BOOLEAN
appenders: DS_LINKED_LIST [L4E_APPENDER]
is_enabled_for (check_priority: L4E_PRIORITY): BOOLEAN
require
check_priority_exists: check_priority /= void
ensure
true_if_priority_enabled: Result = (context.disabled < check_priority.level and priority <= check_priority)
feature
set_priority (new_priority: L4E_PRIORITY)
require
priority_exists: new_priority /= void
add_appender (new_appender: L4E_APPENDER)
require
new_appender_exists: new_appender /= void
not_added: not appenders.has (new_appender)
ensure
appender_added: appenders.has (new_appender)
remove_appender (appender_name: STRING)
require
name_exists: appender_name /= void
call_appenders (event: L4E_EVENT)
require
event_exists: event /= void
close_appenders
set_additive (flag: BOOLEAN)
feature
debugging (message: ANY)
require
message_exists: message /= void
warn (message: ANY)
require
message_exists: message /= void
info (message: ANY)
require
message_exists: message /= void
error (message: ANY)
require
message_exists: message /= void
fatal (message: ANY)
require
message_exists: message /= void
log (event_priority: L4E_PRIORITY; message: ANY)
require
event_priority_exists: event_priority /= void
message_exists: message /= void
feature
infix "<" (other: like Current): BOOLEAN
other
invariant
name_exists: name /= void and then not name.is_empty
appenders_exist: appenders /= void
end -- L4E_LOGGER
Goanna Log4E -- Copyright © 2002 Glenn Maughan