rotatory_fwrite()
#
rotatory_fwrite()
writes a formatted log message to the rotatory log file associated with the given handle.
Prototype
int rotatory_fwrite(
hrotatory_h hr,
int priority,
const char *format,
...
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Handle to the rotatory log instance. |
|
|
Logging priority level, determining the severity of the message. |
|
|
Format string specifying how subsequent arguments are formatted. |
|
|
Additional arguments corresponding to the format string. |
Return Value
Returns the number of bytes written on success, or -1
if an error occurs.
Notes
This function formats the log message using vsnprintf()
and then writes it using rotatory_write()
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples