[ 
https://issues.apache.org/jira/browse/IGNITE-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15114959#comment-15114959
 ] 

Denis Magda commented on IGNITE-944:
------------------------------------

[~samaitra]

'ignite.log' seems to be created by some tests including the one that validates 
this functionality contributed by you.
Also the log file name and location may be dependent on a kind of logger that 
is used along with ignite.

In general, I started an ignite node from sources (using ExampleNodeStartup) 
and saw that the file in ignite-XXXXXXXX.log format was used.

My assumption is that we can a current file name using a code snippet below.

{noformat}
String fileName;
        
        if (log.fileName() != null)
            fileName = log.fileName(); // Will return absolute path.
        else
            fileName = "work/log/ignite.log";
        
{noformat}

Saikat, please test such a solution on your side. It should work.

> HTTP REST log command doesn't work
> ----------------------------------
>
>                 Key: IGNITE-944
>                 URL: https://issues.apache.org/jira/browse/IGNITE-944
>             Project: Ignite
>          Issue Type: Bug
>          Components: general, newbie
>    Affects Versions: sprint-5
>            Reporter: Sergey Kozlov
>            Assignee: Saikat Maitra
>
> Request http://localhost:8080/ignite?cmd=log&to=1&from=0 returns following
> {noformat}
> {"error":"Failed to find registered handler for command: 
> LOG","response":null,"sessionToken":"","successStatus":1}
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to