log.h

来自「dtelent是开源的开发项目」· C头文件 代码 · 共 41 行

H
41
字号
/* log.h
 * Copyright (c) 1997 David Cole
 *
 * Log telnet session and / or protocol
 */
#ifndef __log_h
#define __log_h

/* Return the string to add to the application window title */
char* logGetTitle(void);

/* Initiate logging by querying the user for log file. */
void logStart(void);
/* Stop protocol / session logging */
void logStop(void);
/* Toggle whether or not to log the session */
void logToggleSession(void);
/* Toggle whether or not to log the protocol */
void logToggleProtocol(void);

/* Log some session text */
void logSession(const char* data, int len);
/* Log some protocol using printf style formatting */
void logProtocol(char* fmt, ...);
/* Open log file and replay it through the terminal */
void logReplay(char* fileName);

/* Return whether or not we are currently logging */
BOOL logLogging(void);
/* Return whether or not we are currently logging the session */
BOOL logLoggingSession(void);
/* Return whether or not we are currently logging the protocol */
BOOL logLoggingProtocol(void);

/* Load logging parameters from the .INI file */
void logGetProfile(void);
/* Save logging parameters to the .INI file */
void logSaveProfile(void);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?