Log() public static méthode

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
Résultat void
        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);
            }
        }