2013-06-25 54 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$ "