pluie-echo-0.2 Reference Manual
Packages
pluie-echo-0.2
Pluie
Pluie.Dbg
Pluie.Echo
Pluie.Sys
pluie-echo-0.2
Description:
Content:
Namespaces:
Pluie
-
root namespace of various pluie library
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
Fields:
public
OutputFormatter
of
default OutputFormatter
Dbg
-
Dbg namespace with convenient static methods used to display traces
Constants:
public
const
int8
DBG_ERROR
type log error
public
const
int8
DBG_WARN
type log warn
Methods:
public
void
init
(
bool
debug =
false
)
initialize logging
public
void
@in
(
string
method,
string
? parameters =
null
,
int
line =
0
,
string
? file =
null
)
log method entering
public
void
@out
(
string
method,
string
? parameters =
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
-
Echo namespace
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
)
initialize lib pluie-echo
Sys
Classes:
Cmd
-
A class spawning synchronous command line