diff options
author | dormando <dormando@rydia.net> | 2022-02-10 18:21:34 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-02-11 16:48:33 -0800 |
commit | 3d3e67dd83f917575abfab15f1606d1fadad6e5b (patch) | |
tree | 031843ec03cfbdcf5faed7989a2f41a2a2649ff1 /logger.h | |
parent | 28e5f566b4feec534855e369eb60ecdb6911b44a (diff) | |
download | memcached-3d3e67dd83f917575abfab15f1606d1fadad6e5b.tar.gz |
proxy: logging improvements + lua mcp.log()
adds watch commands for:
proxycmds - internal raw timing log (tbd?)
proxyevents - config updates, internal errors, etc
proxyuser - logs generated by mcp.log()
Diffstat (limited to 'logger.h')
-rw-r--r-- | logger.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -35,6 +35,7 @@ enum log_entry_type { LOGGER_PROXY_CONFIG, LOGGER_PROXY_RAW, LOGGER_PROXY_ERROR, + LOGGER_PROXY_USER, #endif }; @@ -144,6 +145,9 @@ struct _logentry { #define LOG_EVICTIONS (1<<6) /* details of evicted items */ #define LOG_STRICT (1<<7) /* block worker instead of drop */ #define LOG_RAWCMDS (1<<9) /* raw ascii commands */ +#define LOG_PROXYCMDS (1<<10) /* command logs from proxy */ +#define LOG_PROXYEVENTS (1<<11) /* error log stream from proxy */ +#define LOG_PROXYUSER (1<<12) /* user generated logs from proxy */ typedef struct _logger { struct _logger *prev; |