QlikLog - qlik-bots/QlikBotNet GitHub Wiki

This is helper class for logging activities.

QlikLog namespace

LogFile.cs

LogFile(String path)

Constuctor for this class. Path is the directory and file name is QlikSenseBot-yyyyMMdd-HHmmss.log

GetLogFileName()

Return file name as string.

AddLine(string LogLine, bool WriteToConsole = true)

Called by AddBotLine to write a line to log file as well as console. There are three types of log info hence three addBotLine function.

AddBotLine(string LogText, LogType Type = LogType.logInfo)

AddBotLine(string LogText, string userID, string firstName, string lastName, string username, LogType Type = LogType.logInfo)

AddBotLine(string LogText, Telegram.Bot.Types.User User, LogType Type = LogType.logInfo)