Log message #4180466

# At Username Text
# Mar 22nd 2019, 17:53 jhall it wasn't in my face so I did not notice this
# Mar 22nd 2019, 17:52 jhall haha
# Mar 22nd 2019, 17:52 jhall I see the problem
# Mar 22nd 2019, 17:52 jhall oh
# Mar 22nd 2019, 17:52 slackebot2 <jhall>
# Mar 22nd 2019, 17:51 ricksaccous which is ultimately based on the docs XD
# Mar 22nd 2019, 17:49 ricksaccous i haven't played with logs too much but just giving suggestions based on what i think should work
# Mar 22nd 2019, 17:49 ricksaccous heh
# Mar 22nd 2019, 17:49 ricksaccous it seems you can use $this->log if you use log trait
# Mar 22nd 2019, 17:48 ricksaccous https://book.cakephp.org/3.0/en/core-libraries/logging.html#writing-to-logs
# Mar 22nd 2019, 17:47 jhall no its not working
# Mar 22nd 2019, 17:47 ricksaccous probably the better solution is to use https://book.cakephp.org/3.0/en/core-libraries/logging.html#Cake\Log\Log::write
# Mar 22nd 2019, 17:46 ricksaccous is that not working?
# Mar 22nd 2019, 17:45 jhall Do I need to do anything special @ricksaccous?
# Mar 22nd 2019, 17:34 jhall okay I can try that
# Mar 22nd 2019, 17:23 ricksaccous then you can instantiate that class and use it i assume
# Mar 22nd 2019, 17:22 ricksaccous you probably need to use Cake\Log\Engine\FileLog assuming that's the one you've configured
# Mar 22nd 2019, 17:22 ricksaccous @jhall look at Cake\Log\Engine\FileLog
# Mar 22nd 2019, 17:01 jhall setup a listener?
# Mar 22nd 2019, 17:01 jhall is it possible I need to reference a namespace or something?
# Mar 22nd 2019, 17:00 jhall well tried that and it did nothing
# Mar 22nd 2019, 17:00 dereuromark $this->log()?
# Mar 22nd 2019, 16:56 jhall If I want to write out some variable values of a command shell to the debug error log how do I go about doing that? Or how do I do this in general?
# Mar 22nd 2019, 15:22 tjkalinowski :wave:
# Mar 22nd 2019, 15:22 tjkalinowski Tanks !!!!!
# Mar 22nd 2019, 15:22 ricksaccous lmao
# Mar 22nd 2019, 15:22 tjkalinowski WORKED!!
# Mar 22nd 2019, 15:22 ricksaccous @tjkalinowski please read what i linked
# Mar 22nd 2019, 15:20 tjkalinowski @ricksaccous This piece of code works fine for me. But do not display start_date.
# Mar 22nd 2019, 15:20 ricksaccous just do 'valueField' => function ($group) { return $group->group_name . ' ' . $group->start_date; }
# Mar 22nd 2019, 15:19 ricksaccous @tjkalinowski https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#customize-key-value-output
# Mar 22nd 2019, 15:16 ricksaccous you want to connect both fields
# Mar 22nd 2019, 15:16 ricksaccous which is the same as concat....
# Mar 22nd 2019, 15:16 ricksaccous in the value
# Mar 22nd 2019, 15:16 ricksaccous sounds like you want to combine group name and start date
# Mar 22nd 2019, 15:14 tjkalinowski @ricksaccous No, just want to display Group name and Start date in drop down. The key is group_id.
# Mar 22nd 2019, 15:07 dereuromark jep, true
# Mar 22nd 2019, 15:06 hollistergraham123 I think if you add the map function you could easily concat the fields and create a virtual field from it
# Mar 22nd 2019, 15:06 hollistergraham123 https://book.cakephp.org/3.0/en/orm/query-builder.html#queries-are-collection-objects
# Mar 22nd 2019, 15:05 dereuromark contact would be a virtual db field then, or you can run a formatResults etc
# Mar 22nd 2019, 15:04 ricksaccous are you trying to concat them?