Fix windows LOGGER with emojis output
diff --git a/utils/general.py b/utils/general.py
index 10fa07f379f..502459d7b78 100755
--- a/utils/general.py
+++ b/utils/general.py
@@ -97,8 +97,9 @@ def set_logging(name=None, verbose=VERBOSE):
 
 set_logging()  # run before defining LOGGER
 LOGGER = logging.getLogger("yolov5")  # define globally (used in train.py, val.py, detect.py, etc.)
-for fn in LOGGER.info, LOGGER.warning:
-    _fn, fn = fn, lambda x: _fn(emojis(x))  # emoji safe logging
+if platform.system() == 'Windows':
+    for fn in LOGGER.info, LOGGER.warning:
+        setattr(LOGGER, fn.__name__, lambda x: fn(emojis(x)))  # emoji safe logging
 
 
 def user_config_dir(dir='Ultralytics', env_var='YOLOV5_CONFIG_DIR'):



## 🛠️ PR Summary

<sub>Made with ❤️ by [Ultralytics Actions](https://github.com/ultralytics/actions)<sub>

### 🌟 Summary
Enhanced logging for Windows users in YOLOv5.

### 📊 Key Changes
- Adjusted the logger setup to include emoji-safe logging specifically for Windows platforms.

### 🎯 Purpose & Impact
- 🎉 **Benefits**: Ensures that Windows users see log messages with emojis properly, enhancing readability and the user experience.
- 💻 **Impact to Users**: Windows-based developers and users will now have a better logging experience, with emojis appearing correctly in their console outputs. Other platform users remain unaffected.