Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy log to desktop code

Featured Replies

Hey all, who know how you can call this method, using code?
 

copylog.PNG.d6b71ec015d2e4f64a85e52442c0107f.PNG

 

 

Often there is some kind of error in the code, but by the time it is detected, the bot has already closed, and it becomes difficult to find the required log file in the "Logs" folder, when there are thousands of them, if you knew how to call this method, you could make a plugin, allowing you to copy the log when certain errors occur, this would be very useful.

Hi, it is code:

        private void ButtonCopyLog(object sender, System.Windows.RoutedEventArgs e)
        {
            try
            {
                var logFilePath = $@"{Others.GetCurrentDirectory}\Logs\{Logging.NameCurrentLogFile()}";
                var logCopyDest = $@"{Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)}\{Logging.NameCurrentLogFile()}";
                if (File.Exists(logCopyDest))
                    File.Delete(logCopyDest);
                File.Copy(logFilePath, logCopyDest);
                Logging.Write("[Logging]" + Logging.NameCurrentLogFile() + " copied on your desktop.");
            }
            catch
            {
            }
        }

 

  • Author
On 11/12/2021 at 2:53 PM, Droidz said:

Hi, it is code:

        private void ButtonCopyLog(object sender, System.Windows.RoutedEventArgs e)
        {
            try
            {
                var logFilePath = $@"{Others.GetCurrentDirectory}\Logs\{Logging.NameCurrentLogFile()}";
                var logCopyDest = $@"{Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)}\{Logging.NameCurrentLogFile()}";
                if (File.Exists(logCopyDest))
                    File.Delete(logCopyDest);
                File.Copy(logFilePath, logCopyDest);
                Logging.Write("[Logging]" + Logging.NameCurrentLogFile() + " copied on your desktop.");
            }
            catch
            {
            }
        }

 

Thank you very much, this is what I need

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.