Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

stdout logging with limesurvey

More
4 months 1 week ago #270163 by tassoman
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.10.0
Own server or LimeSurvey hosting: own server

==================

In a cloud kubernetes/docker environment, you probably want to log errors in stdout console. Did you implemented it already?
I guess should be done by CFileLogRoute class, but has so many option maybe not effective.

Someone did already but I don't know how to implement inside LS.

Actually, my kubernetes PHP configuration is dumping PHP errors to stdout, but LS installation can't do it.

«All your survey answers are belong to us »
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
3 months 3 weeks ago #270338 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

More
2 weeks 2 days ago - 2 weeks 2 days ago #271361 by tassoman
This code throws 500 error everywhere (every request is made).
I guess it gives back a syntax error or missing class.
Code:
    'components' => [
        'log' => [
            'targets' => [
                'class' => FileTarget::Class,
                'logFile' => 'php://stdout',
            ],
        ],


The problem is I can't debug, because is not logging to stdout.
I was able to debug locally, on development server, and throws: Property "CLogRouter.targets" is not defined.

Finally, I found Yii 2.0 documentation about logging targets . Is it a not available feature on LS Yii 1.1 framework? 

«All your survey answers are belong to us »
Last edit: 2 weeks 2 days ago by tassoman.

Please Log in to join the conversation.

More
1 week 8 hours ago #271452 by tassoman
@DenisChenu do you have information about how to install Yii extensions inside my local Limesurvey 6.x ?

I want to install this extension [1] but, after using composer (downlads build) limesurvey breaks

Should I extract it inside /application/extensions ?

[1] www.yiiframework.com/extension/yii-streamlog

«All your survey answers are belong to us »

Please Log in to join the conversation.

More
5 days 15 hours ago #271465 by DenisChenu

Property "CLogRouter.targets" is not defined.

Sorry for this :(

Hard to use current one :  github.com/yiisoft/yii/blob/0fa8ca495dfa...FileLogRoute.php#L90

Should I extract it inside /application/extensions ?

I really don't have any idea on how to use Yii extension.
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose