aboutsummaryrefslogtreecommitdiffstats
path: root/man/el_print.3
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-14 16:05:27 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-14 16:05:27 +0200
commit1902eed479506d650cc1f0e310bfd5f971dde086 (patch)
tree39e18d90c10ca368bfba5c454504b2eebfce3fbc /man/el_print.3
parent537b59e3e1a064c96042d75180a851f411b4a4a0 (diff)
downloadembedlog-1902eed479506d650cc1f0e310bfd5f971dde086.tar.gz
embedlog-1902eed479506d650cc1f0e310bfd5f971dde086.tar.bz2
embedlog-1902eed479506d650cc1f0e310bfd5f971dde086.zip
API change: rename "struct el_options" to "struct el"
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Diffstat (limited to 'man/el_print.3')
-rw-r--r--man/el_print.326
1 files changed, 14 insertions, 12 deletions
diff --git a/man/el_print.3 b/man/el_print.3
index bd4026f..26ed93e 100644
--- a/man/el_print.3
+++ b/man/el_print.3
@@ -36,32 +36,32 @@ size_t " mlen ")
.BI "int el_pbinary(enum el_level " level ", const void *" memory", \
size_t " mlen ")
.PP
-.BI "int el_oputs(struct el_options *" options ", const char *" message ")"
+.BI "int el_oputs(struct el *" el ", const char *" message ")"
.br
-.BI "int el_oputb(struct el_options *" options ", const void *" memory ", \
+.BI "int el_oputb(struct el *" el ", const void *" memory ", \
size_t " mlen ")"
.br
.BI "int el_oprint(const char *" file ", size_t " line ", \
-const char *" func ", enum el_level " level ", struct el_options *" options ", \
+const char *" func ", enum el_level " level ", struct el *" el ", \
const char *" fmt ", " ... ")"
.br
.BI "int el_ovprint(const char *" file ", size_t " line ", \
-const char *" func ", enum el_level " level ", struct el_options *" options ", \
+const char *" func ", enum el_level " level ", struct el *" el ", \
const char *" fmt ", va_list " ap ")"
.br
.BI "int el_operror(const char *" file ", size_t " line ", \
-const char *" func ", enum el_level " level ", struct el_options *" options ", \
+const char *" func ", enum el_level " level ", struct el *" el ", \
const char *" fmt ", " ... ")"
.br
.BI "int el_opmemory(const char *" file ", size_t " line ", \
-const char *" func ", enum el_level " level ", struct el_options *" options ", \
+const char *" func ", enum el_level " level ", struct el *" el ", \
const void *" memory ", size_t " mlen ")"
.br
.BI "int el_opmemory_table(const char *" file ", size_t " line ", \
-const char *" func ", enum el_level " level ", struct el_options *" options ", \
+const char *" func ", enum el_level " level ", struct el *" el ", \
const void *" memory ", size_t " mlen ")"
.br
-.BI "int el_opbinary(enum el_level " level ", struct el_options *" options ", \
+.BI "int el_opbinary(enum el_level " level ", struct el *" el ", \
const void *" memory ", size_t " mlen ")"
.PP
.BI "#define ELF " __FILE__ ", " __LINE__ ", " EL_FUNC_NAME ", " EL_FATAL
@@ -323,7 +323,9 @@ that is first byte is always the least significant byte.
.B data
is be whatever you want of any size.
.BR el_pbinary (3)
-uses only timestamp and log level, rest of the options are simply ignores.
+uses only timestamp and log level, rest of the options in
+.I el
+are simply ignores.
.PP
.BR el_print (3),
.BR el_vprint (3),
@@ -335,7 +337,7 @@ are filtered based on their
.IR level .
.PP
All of above functions have their counterpart that also accepts custom
-.I options
+.I el
object.
This is useful if we want for example, print logs into one file, and program
queries into another.
@@ -356,7 +358,7 @@ It usually is used with
keyword like
.PP
.nf
- extern struct el_options log_foobar;
+ extern struct el log_foobar;
#define EL_OPTIONS_OBJECT &log_foobar
.fi
.PP
@@ -420,7 +422,7 @@ will be unconditionally set to
and
.B 0
and no file information will be printed - even if it was enabled with
-.BR el_options (3).
+.BR el_option (3).
.PP
If user has access to
.B c99