summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/log.h
blob: 4e941476a103c45fcd2acd98e350c65c8335a8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// @file

#ifndef U3_LOG_H
#define U3_LOG_H

#include "types.h"

/* u3l_log(): logs to stderr or redirects to configured function.
*/
  void
  u3l_log(const char* format, ...)
    __attribute__ ((format (printf, 1, 2)));

/* u3l_punt(): condtionally logs a named punt
 *             (e.g. "mint-punt" for the `name` "mint")
 *             when `pro` is u3_none, and returns pro.
 *             For use when a jet driver declines to handle
 *             a core, when the user should be somehow notified
 *             (e.g. in a cryptographic jet).
 */
  u3_weak
  u3l_punt(const char* name, u3_weak pro);

#endif /* ifndef U3_LOG_H */