/** * Set class method member variable to display in log. * @param $dao_method */ public static function setClassMethod($class_method) { self::$class_method = $class_method; }
* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @copyright 2014-2015 Empoddy Labs. * @author Prabhat Shankar <prabhat.singh88[at]gmail.com> */ // Connect into database // Change the DB configuration according to you require_once 'class.Loader.php'; Loader::register(); $logger = new EFCLogger(); //var_dump($logger);exit; $profiler = new EFCProfiler($logger); $profiler->startTimer('testLogging'); $object = $_SERVER; $logger->debug($object); //$logger->info('Hello World!'); //$logger->notice('Some event occurred.'); //$logger->warning('Careful: some warning.'); //$logger->error('Runtime error.'); //$logger->critical('This needs to be fixed now!'); //$logger->emergency('The website is down right now.'); sleep(2); $profiler->endTimer('testLogging'); //echo $profiler; /* define("HOST", "192"); define("USER", "root");