You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Udara Liyanage <ud...@wso2.com> on 2014/12/19 08:39:03 UTC

What is the python agent info log location

Hi Chamila,

Earlier it was /var/log/apache/stratos . However it is not found in that
location. I only find the error.log within agent folder.

I see the below log config, however can not find agent.log.
[handler_log_file]
class=logging.FileHandler
level=INFO
formatter=default
args=("agent.log", "w")


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: What is the python agent info log location

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Udara,

It seems the log_file handler is somehow dropped from the handlers list. I
will commit the fix soon.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Fri, Dec 19, 2014 at 2:13 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
> Hi,
>
> Please find the loging config withing the instance.
>
> [formatters]
> keys=default
>
> [formatter_default]
> format=%(asctime)s:%(levelname)s:%(message)s
> class=logging.Formatter
>
> [handlers]
> keys=console, error_file
>
> [handler_console]
> class=logging.StreamHandler
> formatter=default
> args=tuple()
>
> [handler_log_file]
> class=logging.FileHandler
> level=INFO
> formatter=default
> args=("agent.log", "w")
>
> [handler_error_file]
> class=logging.FileHandler
> level=ERROR
> formatter=default
> args=("error.log", "w")
>
> [loggers]
> keys=root
>
> [logger_root]
> level=DEBUG
> formatter=default
> handlers=console,error_file
>
>
> On Fri, Dec 19, 2014 at 2:11 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
>>
>> Hi Udara,
>>
>> It might be something wrong with the logger configuration. I will look in
>> to that. In the meanwhile, you can use the /tmp/agent.screen.log, as it
>> contains every output from the agent process.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Fri, Dec 19, 2014 at 2:07 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>>
>>>
>>> On Fri, Dec 19, 2014 at 1:21 PM, Chamila De Alwis <ch...@wso2.com>
>>> wrote:
>>>>
>>>> Hi Udara,
>>>>
>>>> There should be an agent.log file alongside the error.log file. The
>>>> other location is the /tmp/agent.screen.log.
>>>> /tmp/agent.screen.log is there, however agent.log is not there.
>>>>
>>>>
>>>> Regards,
>>>> Chamila de Alwis
>>>> Software Engineer | WSO2 | +94772207163
>>>> Blog: code.chamiladealwis.com
>>>>
>>>>
>>>>
>>>> On Fri, Dec 19, 2014 at 1:09 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Earlier it was /var/log/apache/stratos . However it is not found in
>>>>> that location. I only find the error.log within agent folder.
>>>>>
>>>>> I see the below log config, however can not find agent.log.
>>>>> [handler_log_file]
>>>>> class=logging.FileHandler
>>>>> level=INFO
>>>>> formatter=default
>>>>> args=("agent.log", "w")
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Udara Liyanage
>>>>> Software Engineer
>>>>> WSO2, Inc.: http://wso2.com
>>>>> lean. enterprise. middleware
>>>>>
>>>>> web: http://udaraliyanage.wordpress.com
>>>>> phone: +94 71 443 6897
>>>>>
>>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>

Re: What is the python agent info log location

Posted by Udara Liyanage <ud...@wso2.com>.
Hi,

Please find the loging config withing the instance.

[formatters]
keys=default

[formatter_default]
format=%(asctime)s:%(levelname)s:%(message)s
class=logging.Formatter

[handlers]
keys=console, error_file

[handler_console]
class=logging.StreamHandler
formatter=default
args=tuple()

[handler_log_file]
class=logging.FileHandler
level=INFO
formatter=default
args=("agent.log", "w")

[handler_error_file]
class=logging.FileHandler
level=ERROR
formatter=default
args=("error.log", "w")

[loggers]
keys=root

[logger_root]
level=DEBUG
formatter=default
handlers=console,error_file


On Fri, Dec 19, 2014 at 2:11 PM, Chamila De Alwis <ch...@wso2.com> wrote:
>
> Hi Udara,
>
> It might be something wrong with the logger configuration. I will look in
> to that. In the meanwhile, you can use the /tmp/agent.screen.log, as it
> contains every output from the agent process.
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Dec 19, 2014 at 2:07 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>>
>>
>> On Fri, Dec 19, 2014 at 1:21 PM, Chamila De Alwis <ch...@wso2.com>
>> wrote:
>>>
>>> Hi Udara,
>>>
>>> There should be an agent.log file alongside the error.log file. The
>>> other location is the /tmp/agent.screen.log.
>>> /tmp/agent.screen.log is there, however agent.log is not there.
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> On Fri, Dec 19, 2014 at 1:09 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>>
>>>> Hi Chamila,
>>>>
>>>> Earlier it was /var/log/apache/stratos . However it is not found in
>>>> that location. I only find the error.log within agent folder.
>>>>
>>>> I see the below log config, however can not find agent.log.
>>>> [handler_log_file]
>>>> class=logging.FileHandler
>>>> level=INFO
>>>> formatter=default
>>>> args=("agent.log", "w")
>>>>
>>>>
>>>> --
>>>>
>>>> Udara Liyanage
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> web: http://udaraliyanage.wordpress.com
>>>> phone: +94 71 443 6897
>>>>
>>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: What is the python agent info log location

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Udara,

It might be something wrong with the logger configuration. I will look in
to that. In the meanwhile, you can use the /tmp/agent.screen.log, as it
contains every output from the agent process.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Fri, Dec 19, 2014 at 2:07 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
>
>
> On Fri, Dec 19, 2014 at 1:21 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
>>
>> Hi Udara,
>>
>> There should be an agent.log file alongside the error.log file. The other
>> location is the /tmp/agent.screen.log.
>> /tmp/agent.screen.log is there, however agent.log is not there.
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Fri, Dec 19, 2014 at 1:09 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>>
>>> Hi Chamila,
>>>
>>> Earlier it was /var/log/apache/stratos . However it is not found in that
>>> location. I only find the error.log within agent folder.
>>>
>>> I see the below log config, however can not find agent.log.
>>> [handler_log_file]
>>> class=logging.FileHandler
>>> level=INFO
>>> formatter=default
>>> args=("agent.log", "w")
>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>

Re: What is the python agent info log location

Posted by Udara Liyanage <ud...@wso2.com>.
On Fri, Dec 19, 2014 at 1:21 PM, Chamila De Alwis <ch...@wso2.com> wrote:
>
> Hi Udara,
>
> There should be an agent.log file alongside the error.log file. The other
> location is the /tmp/agent.screen.log.
> /tmp/agent.screen.log is there, however agent.log is not there.
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Fri, Dec 19, 2014 at 1:09 PM, Udara Liyanage <ud...@wso2.com> wrote:
>>
>> Hi Chamila,
>>
>> Earlier it was /var/log/apache/stratos . However it is not found in that
>> location. I only find the error.log within agent folder.
>>
>> I see the below log config, however can not find agent.log.
>> [handler_log_file]
>> class=logging.FileHandler
>> level=INFO
>> formatter=default
>> args=("agent.log", "w")
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Re: What is the python agent info log location

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Udara,

There should be an agent.log file alongside the error.log file. The other
location is the /tmp/agent.screen.log.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Fri, Dec 19, 2014 at 1:09 PM, Udara Liyanage <ud...@wso2.com> wrote:
>
> Hi Chamila,
>
> Earlier it was /var/log/apache/stratos . However it is not found in that
> location. I only find the error.log within agent folder.
>
> I see the below log config, however can not find agent.log.
> [handler_log_file]
> class=logging.FileHandler
> level=INFO
> formatter=default
> args=("agent.log", "w")
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>