pluie-echo-0.1 Reference Manual
Packages
pluie-echo-0.1
Pluie
Pluie.Dbg
Pluie.Echo
Pluie.Sys
pluie-echo-0.1
Description:
Content:
Namespaces:
Pluie
Classes:
ColorConf
-
a Class representing a set of
Color
mapping
ECHO
colors with values coming from the specifyed ini config file
Color
-
a Class representing an Ansi Extended 8 bit Color with foreground, background and bold attributes
OutputFormatter
-
A class managing display on stdout & stderror with
Color
styles defined by specifiyed
ColorConf
Enums:
ECHO
-
enumerate predefined
Color
mapped to default config file see resources/echo.ini
Dbg
Constants:
public
const
int8
DBG_ERROR
type log error
public
const
int8
DBG_WARN
type log warn
Methods:
public
void
init
(
OutputFormatter
of,
bool
debug =
false
)
initialize logging
public
void
@in
(
string
method,
string
? @params =
null
,
int
line =
0
,
string
? file =
null
)
log method entering
public
void
@out
(
string
method,
string
? @params =
null
,
int
line =
0
,
string
? file =
null
)
log method leaving
public
void
msg
(
string
msg,
int
line =
0
,
string
? file =
null
)
log a message
public
void
error
(
string
msg,
string
method,
int
line =
0
,
string
? file =
null
,
int8
mode =
DBG_ERROR
)
log error
Fields:
public
bool
DBG_ENABLED
enable/disable log messages
Echo
Constants:
protected
const
unowned
string
INSTALL_PATH
protected
const
unowned
string
DATA_PATH
protected
const
unowned
string
VERSION
Methods:
public
OutputFormatter
init
(
bool
debug,
string
? path =
null
)
Fields:
public
OutputFormatter
of
Sys
Classes:
Cmd