2012-06-28 5 views
2

구성이 적용되는 동안 일부 메시지와 변수 값을 인쇄하고 싶습니다. 다른 구성 블록의 출력을 시각적으로 분리하고 싶습니다. 꼭두각시 tutorialsdocumentation에 설명 된대로 그래서 나는퍼핏 : 알림 명령의 에코 사용 안 함

notify {"\n\nINSTALL TOMCAT TO $target_folder":} 

를 사용합니다.

불행하게도 출력은 정말 전체 로그에 가독성을 추가하지 않습니다 :

notice: 

INSTALL TOMCAT TO /opt/example/uiserver 
notice: /Stage[main]//Node[dev-xyz.example.com]/Tomcat[uiserver_tomcat]/Notify[ 

INSTALL TOMCAT TO /opt/example/uiserver] 

INSTALL TOMCAT TO /opt/example/uiserver' 

문제 - 대신 메시지를 인쇄하는, 꼭두각시는 성가신 에코 /message: defined 'message' as '를 출력합니다. 그것을 제거 할 수있는 방법이 있습니까?

withpath => false을 사용하면 도움이되지 않았습니다.

꼭두각시 2.7.17.

답변

3

--logdest를 syslog으로 설정하십시오. 기본적으로 console입니다.

--logdest: 
    Where to send messages. Choose between syslog, the console, and a log 
    file. Defaults to sending messages to the console. 
+1

여기서 --logdest : syslog를 추가해야합니까? –