Log message #4114913

# At Username Text
# Feb 6th 2018, 09:31 neon1024 Thanks for the tip hmic, I’ll look into that :slightly_smiling_face:
# Feb 6th 2018, 09:31 neon1024 http://woofraise.com/blog1/wp-content/uploads/2012/08/no-way-tell-me-more.jpg
# Feb 6th 2018, 09:30 neon1024 ORLY?
# Feb 6th 2018, 09:30 hmic what would your read on the other hand? - yeah a database. there is a database log adapter!
# Feb 6th 2018, 09:30 neon1024 Think I’ll just add a config value and log directly to the ORM
# Feb 6th 2018, 09:29 neon1024 I don’t want to use actual logging because i’ll have to read that text file in the admin
# Feb 6th 2018, 09:29 hmic so you would write a log?
# Feb 6th 2018, 09:29 hmic if it's just a simple method call, could even be a trait only you use in the apicontroller and shell
# Feb 6th 2018, 09:29 neon1024 The idea is that the shell runs on a cron and scheduled in the admin, and I’d like to have a log in the admin with nice display of what’s happened and when
# Feb 6th 2018, 09:28 hmic but if you can call that api to do stuff, why not create a businesslogic class from what it's doing and use that in the shell too? (even to listen to your custom events in both cases)
# Feb 6th 2018, 09:28 neon1024 Just not sure I want to add a data store dep to the plugin
# Feb 6th 2018, 09:28 neon1024 Well I want to log to the data store, so not a big deal
# Feb 6th 2018, 09:27 neon1024 I can’t add dependancies
# Feb 6th 2018, 09:27 hmic yeah, sure. an api call would be a kind of a messaging system ;-)
# Feb 6th 2018, 09:27 birdy247 all good
# Feb 6th 2018, 09:27 birdy247 ignore me
# Feb 6th 2018, 09:27 hmic it's not. you need to put a queue or messaging system in place
# Feb 6th 2018, 09:26 neon1024 Will have to figure out a different logging solution, perhaps an api call
# Feb 6th 2018, 09:26 birdy247 2015/10/20 14:14
# Feb 6th 2018, 09:26 birdy247 Im holding a datetime as a string (long story)
# Feb 6th 2018, 09:26 neon1024 I thought it might be
# Feb 6th 2018, 09:26 hmic shell is different than app
# Feb 6th 2018, 09:26 neon1024 Argh
# Feb 6th 2018, 09:26 hmic neon1024: the events are only available in the same php instance
# Feb 6th 2018, 09:25 neon1024 Can I dispatch events from a shell and listen to them in my application? Or is the bootstrapping process for Shells different?
# Feb 6th 2018, 09:23 h.mavisakalian ok, thanks to all.
# Feb 6th 2018, 09:22 neon1024 I’d also echo what hmic said about trying out some virtualised environments
# Feb 6th 2018, 09:22 h.mavisakalian :+1: @neon1024, thanks a lot.
# Feb 6th 2018, 09:17 neon1024 To match what’s in the book
# Feb 6th 2018, 09:17 neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#configuring-authentication-handlers
# Feb 6th 2018, 09:16 neon1024 That would mean changing “form” to “Form”
# Feb 6th 2018, 09:16 neon1024 If it’s case sensitivity, and you previously said “Authentication adapter “form” was not found.”
# Feb 6th 2018, 09:15 hmic and start using a virtual machine for your local development to not run into issues like that again
# Feb 6th 2018, 09:14 hmic check the case
# Feb 6th 2018, 09:14 h.mavisakalian Ok, let me check
# Feb 6th 2018, 09:14 h.mavisakalian I am not asking you too
# Feb 6th 2018, 09:14 neon1024 I can help, but I can’t do you work for you
# Feb 6th 2018, 09:14 neon1024 I think you can work that out for yourself
# Feb 6th 2018, 09:14 h.mavisakalian and where ?
# Feb 6th 2018, 09:14 h.mavisakalian So what should I change ?
# Feb 6th 2018, 09:13 neon1024 Right, well there you are