GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
LOGGER
+
Point of view
All features
ANY
LOG_INTERNAL_CONF
LOG_LEVEL
LOGGING
All features
class LOGGER
Summary
top
A simple logger.
Direct parents
Insert list:
ANY
Class invariant
top
tag
/= Void
level
/= Void
Overview
top
Creation features
{
LOG_INTERNAL_CONF
}
make
(a_output:
LOG_OUTPUT
, a_tag:
FIXED_STRING
, a_id:
INTEGER_32
)
Features
{
ANY
}
parent
: LOGGER
level
:
LOG_LEVEL
tag
:
FIXED_STRING
Logging streams
{
ANY
}
trace
:
OUTPUT_STREAM
info
:
OUTPUT_STREAM
warning
:
OUTPUT_STREAM
error
:
OUTPUT_STREAM
Logging checks
{
ANY
}
is_trace
:
BOOLEAN
is_info
:
BOOLEAN
is_warning
:
BOOLEAN
is_error
:
BOOLEAN
Log level
{
ANY
}
set_level
(a_level:
LOG_LEVEL
)
Parent logger
{
LOG_INTERNAL_CONF
}
set_parent
(a_parent: LOGGER)
Log output, internal usage only
{
LOG_INTERNAL_CONF
,
LOG_LEVEL
}
output
:
LOG_OUTPUT
{
LOGGING
}
is_valid
:
BOOLEAN
{}
make
(a_output:
LOG_OUTPUT
, a_tag:
FIXED_STRING
, a_id:
INTEGER_32
)
levels
:
LOG_LEVELS
{
LOG_INTERNAL_CONF
}
generation_id
:
INTEGER_32
parent
: LOGGER
writable attribute
{
ANY
}
top
level
:
LOG_LEVEL
writable attribute
{
ANY
}
top
tag
:
FIXED_STRING
writable attribute
{
ANY
}
top
trace
:
OUTPUT_STREAM
effective function
{
ANY
}
top
ensure
Result /= Void
info
:
OUTPUT_STREAM
effective function
{
ANY
}
top
ensure
Result /= Void
warning
:
OUTPUT_STREAM
effective function
{
ANY
}
top
ensure
Result /= Void
error
:
OUTPUT_STREAM
effective function
{
ANY
}
top
ensure
Result /= Void
is_trace
:
BOOLEAN
effective function
{
ANY
}
top
is_info
:
BOOLEAN
effective function
{
ANY
}
top
is_warning
:
BOOLEAN
effective function
{
ANY
}
top
is_error
:
BOOLEAN
effective function
{
ANY
}
top
set_level
(a_level:
LOG_LEVEL
)
effective procedure
{
ANY
}
top
require
a_level /= Void
ensure
level
= a_level
set_parent
(a_parent: LOGGER)
effective procedure
{
LOG_INTERNAL_CONF
}
top
require
a_parent /= Void
ensure
parent
= a_parent
output
:
LOG_OUTPUT
writable attribute
{
LOG_INTERNAL_CONF
,
LOG_LEVEL
}
top
is_valid
:
BOOLEAN
effective function
{
LOGGING
}
top
make
(a_output:
LOG_OUTPUT
, a_tag:
FIXED_STRING
, a_id:
INTEGER_32
)
effective procedure
{}
top
require
a_output /= Void
ensure
output
= a_output
tag
= a_tag
generation_id
= a_id
is_valid
levels
:
LOG_LEVELS
writable attribute
{}
top
generation_id
:
INTEGER_32
writable attribute
{
LOG_INTERNAL_CONF
}
top