- 21 Oct, 2022 1 commit
-
-
Shawn Webb authored
In the case of an error, va_end might not be called. Let's put it in the right place where it'll be called regardless. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> Sponsored-by: BlackhawkNest, Inc
-
- 09 Dec, 2021 1 commit
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 08 Dec, 2021 1 commit
-
-
Shawn Webb authored
We can now log to a specific file on the filesystem. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> Sponsored-by: BlackhawkNest, Inc
-
- 23 Aug, 2021 2 commits
-
-
Shawn Webb authored
The sqlite3 code needed to be fixed up due to the new signature for `lattutil_log_init`. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 13 Aug, 2021 1 commit
-
-
Shawn Webb authored
This ensures that log messages are printed on the screen in proper order. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 06 Aug, 2021 3 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Even the function declarations were gated behind _lattutil_internal, the functions can be declared static in their respective files. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 05 Aug, 2021 3 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
The name of the table is passed in to the logger's init function. The SQLite3 logger will create the following table if it doesn't already exist: CREATE TABLE IF NOT EXISTS <table> ( timesec BIGINT NOT NULL, timeusec BIGINT NOT NULL, msgtype TEXT NOT NULL, msg TEXT NOT NULL ) Of course, replace `<table>` with the name of the table. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 04 Aug, 2021 1 commit
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 23 Jul, 2021 2 commits
-
-
Shawn Webb authored
No current plans to use `lsq_flags` in `lattutil_sqlite_query_t`, but create the struct member in case we need it in the future. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
If the consuming code doesn't pass in a logger, make life easy for the library code by instantiating a logging object, leaving it in dummy mode. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 22 Jul, 2021 3 commits
-
-
Shawn Webb authored
We'll want to eventually log any parameters, which will make this complex enough to warrant its own function. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
While here, also start the work for logging queries. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> issue: #2
-
- 19 Jul, 2021 6 commits
-
-
Shawn Webb authored
We may want to store additional arbitrary data, specific to the underlying implementation. For example, when I implement libpushover-based logging, I'll want to store a libpushover context object in the logger context. I don't want that exposed to the application, though. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Applications that consumes these objects may want to attach arbitrary data to them. The liblattutil library will never make use of these members. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 18 Jul, 2021 8 commits
-
-
Shawn Webb authored
Only info goes to stdout, all the rest go to stderr. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Versioning the objects makes it easy to know ABI compat between old version of the library and new. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 17 Jul, 2021 6 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
This just gets the rows and columns by IDs. A follow-up commit will provide a name-based column accessor. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
This commit provides a unified API for performing SQLite3 queries. Queries that return rows store their resulting data in a libucl object tree. Using libucl enables us to do some pretty powerful things, like convert a SQLite3 database to JSON as one example. We can construct complex object trees, clone objects, etc. Not all data types are supported--only the ones I myself need right this very moment. A more complete data type support will follow later as the need arises. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
- 15 Jul, 2021 2 commits
-
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
The dummy log is the default and is effectively a NOP. It's set in case the user forgets to use a real logging backend (syslog is the only other supported logging backend right now). Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-