GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
LOG_FILE_ROTATED
+
Point of view
All features
ANY
LOG_FILE_OPTIONS
LOG_FILE_OPTION
All features
class LOG_FILE_ROTATED
Summary
top
Direct parents
Inherit list:
LOG_FILE_OPTION
Overview
top
Creation features
{
LOG_FILE_OPTIONS
}
make
(a_parent:
LOG_FILE_OPTION
, a_condition:
FUNCTION
[
TUPLE 1
[
FILE_STREAM
],
BOOLEAN
], a_retention:
INTEGER_64
)
Features
{
LOG_FILE_OPTIONS
,
LOG_FILE_OPTION
}
retrieve
(stream:
OUTPUT_STREAM
):
OUTPUT_STREAM
{}
make
(a_parent:
LOG_FILE_OPTION
, a_condition:
FUNCTION
[
TUPLE 1
[
FILE_STREAM
],
BOOLEAN
], a_retention:
INTEGER_64
)
parent
:
LOG_FILE_OPTION
condition
:
FUNCTION
[
TUPLE 1
[
FILE_STREAM
],
BOOLEAN
]
retention
:
INTEGER_64
file_pattern
(base_name:
STRING
):
REGULAR_EXPRESSION
rotate
(file:
FILE_STREAM
):
FILE_STREAM
map
(dir_name:
STRING
, file_name_pattern:
REGULAR_EXPRESSION
, action:
PROCEDURE
[
TUPLE 2
[
INTEGER_32
,
STRING
]])
non-Void if the file exists; in that case the result contains the exact name of the log file.
last_index
:
INTEGER_32
set_last_index
(index:
INTEGER_32
)
rotate_file
(dir_name:
STRING
, file_name_pattern:
REGULAR_EXPRESSION
, at_index:
INTEGER_32
, index:
INTEGER_32
, file_name:
STRING
)
bd
:
BASIC_DIRECTORY
ft
:
FILE_TOOLS
{}
_inline_agent8
(file_:
FILE_STREAM
)
retrieve
(stream:
OUTPUT_STREAM
):
OUTPUT_STREAM
effective function
{
LOG_FILE_OPTIONS
,
LOG_FILE_OPTION
}
top
require
stream.is_connected
ensure
Result /= stream implies not stream.is_connected
Result /= Void implies Result.is_connected
Result.path = old stream.path
make
(a_parent:
LOG_FILE_OPTION
, a_condition:
FUNCTION
[
TUPLE 1
[
FILE_STREAM
],
BOOLEAN
], a_retention:
INTEGER_64
)
effective procedure
{}
top
require
a_parent /= Void
a_condition /= Void
ensure
parent
= a_parent
condition
= a_condition
retention
= a_retention
parent
:
LOG_FILE_OPTION
writable attribute
{}
top
condition
:
FUNCTION
[
TUPLE 1
[
FILE_STREAM
],
BOOLEAN
]
writable attribute
{}
top
retention
:
INTEGER_64
writable attribute
{}
top
file_pattern
(base_name:
STRING
):
REGULAR_EXPRESSION
effective function
{}
top
rotate
(file:
FILE_STREAM
):
FILE_STREAM
effective function
{}
top
require
file.is_connected
ensure
Result /= file
Result.is_connected
not file.is_connected
map
(dir_name:
STRING
, file_name_pattern:
REGULAR_EXPRESSION
, action:
PROCEDURE
[
TUPLE 2
[
INTEGER_32
,
STRING
]])
effective procedure
{}
top
non-Void if the file exists; in that case the result contains the exact name of the log file.
require
dir_name /= Void
file_name_pattern /= Void
action /= Void
last_index
:
INTEGER_32
writable attribute
{}
top
set_last_index
(index:
INTEGER_32
)
effective procedure
{}
top
rotate_file
(dir_name:
STRING
, file_name_pattern:
REGULAR_EXPRESSION
, at_index:
INTEGER_32
, index:
INTEGER_32
, file_name:
STRING
)
effective procedure
{}
top
require
last_index
> 0
bd
:
BASIC_DIRECTORY
writable attribute
{}
top
ft
:
FILE_TOOLS
writable attribute
{}
top
_inline_agent8
(file_:
FILE_STREAM
)
frozen
effective procedure
{}
top