Files
tripz-llc/apps/driver/lib/print.dart
T
2026-08-09 16:56:13 +03:00

21 lines
755 B
Dart
Executable File

import 'dart:developer' as developer;
import 'package:flutter/foundation.dart' show kDebugMode;
class Log {
Log._();
/// ⚠️ يُطبع في وضع التطوير فقط.
/// `developer.log` لا يُحذف في نسخة الإصدار — يذهب إلى os_log على iOS
/// و logcat على أندرويد، وكان يسرّب الـ JWT وسر الـ HMAC وأرقام الهواتف
/// وردود الـ API كاملة إلى سجلّ النظام على جهاز المستخدم.
static void print(String value, {StackTrace? stackTrace}) {
if (!kDebugMode) return;
developer.log(value, name: 'LOG', stackTrace: stackTrace);
}
static Object? inspect(Object? object) {
// return developer.inspect(object);
}
}