                     try self.moveOldLogsToOverflowFile(logFile, overflowFile: logOverflowFile)
                 }
                 catch let error {
-                    NSLog("Log file \(logFile) is full but the old logs could not be removed. Try sending the logs. Error: \(error)")
+                    print("Log file \(logFile) is full but the old logs could not be removed. Try sending the logs. Error: \(error)")
                     return
                 }
             }

            }
            else {
                // Print to console
                // Example: [DEBUG] [mfpsdk.logger] logMessage in Logger.swift:234 :: "Some random message"
                Logger.printLogToConsole(message, loggerName: self.name, level: level, calledFunction: calledFunction, calledFile: calledFile, calledLineNumber: calledLineNumber)
            }
        } else {

                }
            }
            catch let error {
                print("Cannot determine the size of file:\(logFileName) due to error: \(error). In case the file size is greater than the specified max log storage size, logs will not be written to file.")
            }
        }
        
