Welcome Guest, Not a member yet? Register   Sign In
logging a global data
#1

I am about to go into alpha on my project which is a multi user system and is fairly complex (to me). I figure I will need to turn off and on a log for a specific user who is reporting an issue. But what can I log? I'd like to log the variables each time a function in a controller is called. Is there any type of help built into CI for logging?
proof that an old dog can learn new tricks
Reply
#2

(This post was last modified: 09-13-2018, 07:51 AM by ignitedcms.)

*Edited reply see below.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply
#3

Thanks. I am already logging errors. I am not talking about that. I want to log variables for my debugging logic. Remember this is multi user so I need to be sure I keep each person's data separate. I would not be super surprised if problems arise in testing. I'd like to write out user data.
proof that an old dog can learn new tricks
Reply
#4

(This post was last modified: 09-13-2018, 07:44 AM by ignitedcms.)

I suppose you could write something inside your method/function(s) that saves to a database or text file?

https://stackoverflow.com/questions/2497...r-visitors

There might be some existing stuff on github but I'm not sure how up to date they are.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
Reply
#5

@richb201,

The documentation link... https://www.codeigniter.com/user_guide/g...r-handling
Reply
#6

It seems that log_message might work if I set the parameter to "info". But I want to log this information to a different file than the error.log.
proof that an old dog can learn new tricks
Reply
#7

@richb201,

This might be helpful... https://stackoverflow.com/questions/9971...og-message
Reply




Theme © iAndrew 2016 - Forum software by © MyBB