JeremyStarTM
99703cf03e
Reviewed-on: StarOpenSource/core#1 Rewrote CORE and improved the startup process and startup time significantly. The documentation has been beefed up too and is now much better. Existing projects may need major refactoring however. Co-authored-by: JeremyStarTM <jeremystartm@staropensource.de> Co-committed-by: JeremyStarTM <jeremystartm@staropensource.de>
2.5 KiB
2.5 KiB
hide | |
---|---|
|
Logger (/root/CORE/Logger)
The CORE logger implementation (with formatting support!)
Signals
logevent
- emitted on
log message
- argument
type
(typeString
, can beDIAG
,INFO
,WARN
orERR!
) - argument
script
(typeString
) - argument
message
(typeString
) - argument
logmessage
(typeString
, descriptionThe full log message as printed in console
)
Methods
diag()
- returns
void
- description
Prints a diagnostic message
- argument
script
- type
String
- mandatory
yes
- description
The script where the log message is coming from
- type
- argument
message
- type
String
- mandatory
yes
- description
Your log message
- type
- argument
preproc
- type
bool
- mandatory
no, default value is true
- description
If the log message should be run through the preprocessor. If false formatting will be disabled for that log message.
- type
- argument
info()
- returns
void
- description
Prints a informational message
- argument
script
- type
String
- mandatory
yes
- description
The script where the log message is coming from
- type
- argument
message
- type
String
- mandatory
yes
- description
Your log message
- type
- argument
preproc
- type
bool
- mandatory
no, default value is true
- description
If the log message should be run through the preprocessor. If false formatting will be disabled for that log message.
- type
- argument
warn()
- returns
void
- description
Prints a warning message
- argument
script
- type
String
- mandatory
yes
- description
The script where the log message is coming from
- type
- argument
message
- type
String
- mandatory
yes
- description
Your log message
- type
- argument
preproc
- type
bool
- mandatory
no, default value is true
- description
If the log message should be run through the preprocessor. If false formatting will be disabled for that log message.
- type
- argument
error()
- returns
void
- description
Prints a error message
- argument
script
- type
String
- mandatory
yes
- description
The script where the log message is coming from
- type
- argument
message
- type
String
- mandatory
yes
- description
Your log message
- type
- argument
preproc
- type
bool
- mandatory
no, default value is true
- description
If the log message should be run through the preprocessor. If false formatting will be disabled for that log message.
- type
- argument