123456789101112131415161718192021222324252627282930 |
- <?php
-
- namespace Luticate\Utils\Business;
-
- class LuLog {
-
- /**
- * @var $_logFilePath string
- */
- private static $_logFilePath;
-
- public static function setLogFilePath($logFilePath) {
- self::$_logFilePath = $logFilePath;
- }
-
- public static function log($data)
- {
- try {
- file_put_contents(self::$_logFilePath, "\n\n\n" . $data, FILE_APPEND);
- }
- catch (\Exception $e)
- {
-
- }
- catch (\Error $e)
- {
-
- }
- }
- }
|