Welcome Guest, Not a member yet? Register   Sign In
Asking about log_message files
#1

[eluser]Lima[/eluser]
I'm using threshold=2 in my CI config and log files stored on logs directory.

Log file seem like this
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

DEBUG - 2009-04-18 00:02:29 --> Config Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Hooks Class Initialized
DEBUG - 2009-04-18 00:02:29 --> URI Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Router Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Output Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Input Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Global POST and COOKIE data sanitized
DEBUG - 2009-04-18 00:02:29 --> Language Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Loader Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Controller Class Initialized
DEBUG - 2009-04-18 00:02:29 --> Model Class Initialized
DEBUG - 2009-04-18 00:02:29 --> XSS Filtering completed
DEBUG - 2009-04-18 00:02:29 --> XSS Filtering completed
...

Is there any function built in CI to view log files? (ie. on admin page)

Thanks
#2

[eluser]Wuushu[/eluser]
maybe you could use the helper function $content = read_file($path.$file) ?
then echo $content;

just my first thought on top of my head




Theme © iAndrew 2016 - Forum software by © MyBB