mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add message log
This commit is contained in:
14
skynet-src/skynet_log.h
Normal file
14
skynet-src/skynet_log.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef skynet_log_h
|
||||
#define skynet_log_h
|
||||
|
||||
#include "skynet_env.h"
|
||||
#include "skynet.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
FILE * skynet_log_open(struct skynet_context * ctx, uint32_t handle);
|
||||
void skynet_log_close(struct skynet_context * ctx, FILE *f, uint32_t handle);
|
||||
void skynet_log_output(FILE *f, uint32_t source, int type, int session, void * buffer, size_t sz);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user