BF2Statistics.Gamespy.GpcmServer.Log C# (CSharp) Method

Log() public static method

This method is used to store a message in the LoginServer.log file
public static Log ( string message ) : void
message string The message to be written to the log file
return void
        public static void Log(string message)
        {
            Logger.Write(message);
        }

Usage Example

        /// <summary>
        /// Event called when a complete message has been recieved
        /// </summary>
        /// <param name="Message"></param>
        private void Stream_DataReceived(string message)
        {
            // Read client message, and parse it into key value pairs
            string[] recieved = message.TrimStart('\\').Split('\\');
            switch (recieved[0])
            {
            case "newuser":
                CreateNewUser(ConvertToKeyValue(recieved));
                break;

            case "login":
                ProcessLogin(ConvertToKeyValue(recieved));
                break;

            case "getprofile":
                SendProfile();
                break;

            case "updatepro":
                UpdateUser(ConvertToKeyValue(recieved));
                break;

            case "logout":
                Disconnect(0);
                break;

            default:
                Stream.SendAsync(@"\error\\err\0\fatal\\errmsg\Invalid Query!\id\1\final\");
                GpcmServer.Log("NOTICE: [GpcmClient.Stream_DataReceived] Unkown Message Passed: {0}", message);
                break;
            }
        }
All Usage Examples Of BF2Statistics.Gamespy.GpcmServer::Log