Lintouch Logging

From LintouchWiki

Jump to: navigation, search

[edit] Introduction

[edit] Why do we need logging?

There are many reasons for logging data on the Lintouch Server side. Following are the most important ones.

While creating a Lintouch Server Plugin, there is a need to watch and check data sent and received through the plugin. Now the only way to debug the plugin is to put printf in the code - a very unconfortable way of debugging.

Another reason is that a developer may need to have all the data that go through a Lintouch Server Plugin for later analysis or playback.

[edit] Global concept

There are many ways a log could be written and how it should be formatted. Thus we have decided to develop new Lintouch Logging Plugins. They are responsible for formatting, storing, and sending the logs.

Lintouch Logging Plugins are stored in the directory logging-plugins, next to Lintouch Server Plugins. Their first letter is capitalized. For example, "Console" Lintouch Logging Plugin is stored as Console.dll.

Lintouch Server Logging is configured within Lintouch Project file and can only be enabled there. Logging is enabled if there is at least one Logging Plugin configured for the project.


See the document in our svn repository if you want to go into details: lintouch-server-logging.html

Personal tools