]> git.corax.cc Git - foundry/commit
include/context: Add method to log directly to a context
authorMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:20:08 +0000 (11:20 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 8 Aug 2021 02:20:08 +0000 (11:20 +0900)
commitb62aea45068ffc589e88d78db9549cc42015564f
tree52a9760b8692c7f4dff1ca7af00543c0138d82c7
parenta3002eece9b2da5c9bb535ddfed35d47f65ed41f
include/context: Add method to log directly to a context

When logging messages to a context, a process needs to write messages
to a logfile and then add the logfile to a context. This makes the
control flow rather complicated because temporary files need to be
created, written to, and removed correctly when errors occur.
This commit adds the foundry_context_log() method that allows the
caller to append messages directly to a logfile.
include/context.sh