snowpack.FDOperationLog.Store C# (CSharp) Method

Store() public method

public Store ( string component, string shortMessage, string fullMessage, FDLogVerbosity importance ) : void
component string
shortMessage string
fullMessage string
importance FDLogVerbosity
return void
        public void Store(string component, string shortMessage, string fullMessage, FDLogVerbosity importance)
        {
            if((int)importance >= (int)verbosity) return;

            DataStore.StoreLogMessage(importance, component, shortMessage, fullMessage, DateTime.Now);

            if(console) //we write the message to the console also
            {
                Console.WriteLine ("--- " + DateTime.Now.ToString() + ": " + component + "(" + importance + ") ---");
                Console.WriteLine (shortMessage);
            }
        }