<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Log; class Logger { private static function write($SEC4E, $aA2dJ, $dScvi, $fBbl8) { goto OcJuG; GojcI: @file_put_contents(storage_path("logs/{$SEC4E}_{$aA2dJ}_" . date('Ymd') . '.log'), $k5Axf . '
', FILE_APPEND); goto xAujq; OcJuG: if (!is_string($fBbl8)) { $fBbl8 = json_encode($fBbl8, JSON_UNESCAPED_UNICODE); } goto p29Bt; xAujq: return $k5Axf; goto GEoVX; p29Bt: $k5Axf = '[' . sprintf('%05d', getmypid()) . '] ' . date('Y-m-d H:i:s') . " - {$dScvi}" . ($fBbl8 ? " - {$fBbl8}" : ''); goto GojcI; GEoVX: } public static function info($SEC4E, $dScvi, $fBbl8 = '') { return self::write($SEC4E, 'info', $dScvi, $fBbl8); } public static function error($SEC4E, $dScvi, $fBbl8 = '') { return self::write($SEC4E, 'error', $dScvi, $fBbl8); } }