add message log

This commit is contained in:
Cloud Wu
2014-08-22 15:30:35 +08:00
parent 04688e98a7
commit 16f63df0c3
8 changed files with 210 additions and 38 deletions

14
skynet-src/skynet_log.h Normal file
View 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