Log() public static method

Utility function to log messages

This is a utility function that you can use to log messages that will be stored in a file (as curses has taken over the screen and you can not really log information there).

The data is written to the file "log2" for now

public static Log ( string s ) : void
s string
return void
Example #1
0
        void UpdatePollMap()
        {
            if (!poll_dirty)
            {
                return;
            }
            poll_dirty = false;

            pollmap = new Pollfd [descriptorWatchers.Count];
            int i = 0;

            foreach (var fd in descriptorWatchers.Keys)
            {
                pollmap [i].fd     = fd;
                pollmap [i].events = MapCondition(descriptorWatchers [fd].Condition);
                Widget.Log("Got {0} from {1}", pollmap [i].events, descriptorWatchers [fd].Condition);
            }
        }