/// <summary>
        /// Logs the change of a process' state.
        /// </summary>
        /// <param name="processName">Name of the process.</param>
        /// <param name="state">The process state.</param>
        public void logProcessStateChange(String processName, ProcessState state)
        {
            Category category = Category.STATE_CHANGE;
            Priority priority = GlobVar.DEFAULT_PRIORITY;

            ProcessWrapper proc = new ProcessWrapper(processName);

            String message = processName + ": Process state changed from " + ProcessStateToString(proc.State)
                + " to " + ProcessStateToString(state);

            proc.Update(state);
            MessageWrapper mess = new MessageWrapper(message, category, priority);
            LogRelWrapper rel = new LogRelWrapper(mess.MessageId, proc.ProcessId);
        }
        /// <summary>
        /// Logs the starting of a process.
        /// </summary>
        /// <param name="processName">Name of the process.</param>
        public void logProcessStart(String processName)
        {
            Category category = Category.START;
            Priority priority = GlobVar.DEFAULT_PRIORITY;
            ProcessState startState = GlobVar.DEFAULT_PROCESS_STATE;

            ProcessWrapper proc = new ProcessWrapper(processName);

            String message = processName + ": Process Started";

            // Reset state, just in case the process is already in the database.
            proc.Update(startState);

            MessageWrapper mess = new MessageWrapper(message, category, priority);
            LogRelWrapper rel = new LogRelWrapper(mess.MessageId, proc.ProcessId);
        }