2013-06-25 55 views
1

所以我有一个Linux服务器上的企业版neo4j 2.0 M3。当我运行neo4j-shell时,它将shell命令记录在我的主目录中。neo4j外壳日志没有时间戳

像这样

ls -as 
4 .     4 .bash_logout 4 .groovy  4 .java   4 .ssh 
4 ..     4 .bash_profile  4 .emacs    4 .inputrc  4 .kde   4 .pki          
72 .bash_history  4 .bashrc   4 .grails    4 .ivy2   4 .mozilla  4 .shell_history 

当我们进入shell的历史记录,我们只得到外壳的历史命令

START n=node(*) RETURN n,labels(n); 
exit 
START n=node(*) RETURN n,labels(n); 
exit 

但是,它不添加时间戳。我怎么能添加一个时间戳。我在loggings.properties看,但无法找到它。谢谢!

回答

2

从neo4j ML回应我的答案。 “

”之前就存在过,但由于某种原因删除了。我添加了几个标准的bash提示变量,您可以按照以下过程:https://github.com/neo4j/neo4j/pull/907(对即将发布的更高版本2.0的请求) “。即使是下一个里程碑也可能包含它。

你会使用它,例如像:

neo4j-sh (0)$ export PS1="MyPrompt \d \t \W$ " 

,或者直接将其指定为在初始会话值:

java <arguments for starting shell client> -DPS1="MyPrompt \d \t \W$ "