-
☆ A M B ☆
- 24,524 Posts
Well, if that's all you want to do, I know there's an error logging API function!
The class is documented here
http://api.modx.com/revolution/2.2/
I think this is what you're really looking for, though
https://forums.modx.com/thread/29142/error-handling-and-error-logging-in-php-code-in-modx-revolution#dis-post-157490
-
☆ A M B ☆
- 3,141 Posts
IANAL!
As Susan and Bob have both said - the core is licensed under GPL, which means you're free to do with it as you please as long as you stick to the license and release it under the same license.
If you want to copy the xPDO.log function, go ahead, just make sure that you oblige to the GPL license and that if you redistribute it, you also license it as GPL. If you are building an Extra which uses a customized xPDO.log, make sure to attach it to your own class (I think you're doing that) and to not modify the core in your build package.
Some further reading on the subject:
https://forums.modx.com/thread/6383/modx-the-gpl-and-me (old, but I think it still applies, except the private label never happened)
http://thrash.me/tech-and-modx/open-source-vs-open-core.html
https://forums.modx.com/index.php/topic,41928.0.html
[ed. note: markh last edited this post 14 years, 2 months ago.]
Thanks for reply Mark,
and thanks for the links
Regards.
PS.
Quote from: markh at Jul 30, 2012, 07:46 AMIANAL!
in my language that sounds really bad,
I am not a lawyer?
[ed. note: rtoskit last edited this post 14 years, 2 months ago.]
Developer of RTOS and Drivers
Specializes in portability of BSD/Linux