Beispiel #1
0
 protected internal FileLoggerCallbackArgs(string filePath, FileLoggerAction action, FileLoggerResult status, Exception error = null)
 {
     FilePath = filePath;
     Action   = action;
     Status   = status;
     Error    = error;
 }
Beispiel #2
0
        internal static void InvokeFileActionEvent(EventHandler <FileLoggerCallbackArgs> callback,
                                                   object sender, string filePath, string text, byte[] data,
                                                   FileLoggerAction action, FileLoggerResult status, Exception error = null)
        {
#if !UNITY_3D && !UNITY3D
            if (status != FileLoggerResult.Success)
            {
                Debug.WriteLine("action: {0}, status: {1}\r\nerror:{2}", action, status, error);
            }
#endif
            if (callback == null)
            {
                return;
            }
            callback(sender, new FileLoggerCallbackArgs
            {
                FilePath = filePath,
                Text     = text,
                Data     = data,
                Action   = action,
                Status   = status,
                Error    = error
            });
        }
Beispiel #3
0
 internal void InvokeFileActionEvent(string filePath, FileLoggerAction action, FileLoggerResult status,
                                     Exception error = null)
 {
     InvokeFileActionEvent(Callback, this, filePath, null, null, action, status, error);
 }
Beispiel #4
0
 protected internal FileLoggerCallbackArgs(byte[] data, string filePath,
                                           FileLoggerAction action, FileLoggerResult status, Exception error = null) : this(filePath, action, status, error)
 {
     Data = data;
 }
Beispiel #5
0
 protected internal FileLoggerCallbackArgs(string text, string filePath,
                                           FileLoggerAction action, FileLoggerResult status, Exception error = null) :
     this(filePath, action, status, error)
 {
     Text = text;
 }