Hi,
I am new to xojo cloud. And I don’t know how to find bugs with xojo cloud…
I am use to System.DebugLog but when I read the logs on the logs folder I don’t retrieve anything concerning my App DebugLog?
Thanks
Chris
Hi,
I am new to xojo cloud. And I don’t know how to find bugs with xojo cloud…
I am use to System.DebugLog but when I read the logs on the logs folder I don’t retrieve anything concerning my App DebugLog?
Thanks
Chris
Hi Chris - If you control the log file, I would put it in:
SpecialFolder.SharedDocuments
Thanks Jason for your advice, I wrote my own debug_log
Try
// Accéder au dossier SharedDocuments
Dim logFile As FolderItem = SpecialFolder.SharedDocuments.Child("debug_log.txt")
// Ouvrir ou créer le fichier pour l'écriture en mode append
If logFile <> Nil Then
Dim outputStream As TextOutputStream
If logFile.Exists Then
outputStream = TextOutputStream.Append(logFile) // Ajouter au fichier existant
Else
outputStream = TextOutputStream.Create(logFile) // Créer un nouveau fichier
End If
// Écrire la date/heure et le message de log
outputStream.WriteLine(DateTime.Now.ToString + " - " + logMessage)
// Fermer le flux pour sauvegarder les changements
outputStream.Close
End If
Catch e As IOException
// Gérer une éventuelle erreur d'I/O
System.DebugLog("Erreur lors de l'écriture dans le log: " + e.Message)
End Try
Works great, I get the log in shared_document on xojo cloud
Chris