1

I want to log my details for log my application event. So i have changed config.php as follows.

$config['log_threshold'] = 4;
$config['log_path'] = 'application/logs/main';
$config['log_date_format'] = 'Y-m-d H:i:s';

I use it in my controller as like this.

log_message('error', 'Some variable did not contain a value.');

I grant write permission to main file. bt it is not working. What is the issue.

1
  • 1
    The log path should have a trailing slash, can it be that simple? Commented Sep 20, 2013 at 11:21

1 Answer 1

2

log_path is meant to be a folder not a file. If main is a folder then you should add a trailing /

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.