Skip to content

Commit

Permalink
add logger documents
Browse files Browse the repository at this point in the history
  • Loading branch information
tumf committed Jul 3, 2013
1 parent 377191c commit ac63c72
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ target_nodes ["www-1.example","www-2.example","db-1.example"]
# attack command
attack_cmd "ssh attacker.example ./bin/ghakai www-1.example.yml 2>/dev/null"

# logger
logger "gargor.log"

# or optional settings like blows:
#
# logger "gargor.log" do |log|
# log.level = Logger::INFO
# end

# evalute of the attack
# code: exit code of attack_cmd command (0 => succees)
Expand Down
8 changes: 8 additions & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ target_nodes ["www-1.example","www-2.example","db-1.example"]
# 攻撃コマンド
attack_cmd "ssh attacker.example ./bin/ghakai www-1.example.yml 2>/dev/null"

# ログ
logger "gargor.log"

# もしくは以下のようにしてLoggerの設定ができる
#
# logger "gargor.log" do |log|
# log.level = Logger::INFO
# end

# 攻撃結果の評価
# code: attack_cmdのプロセス終了コード(普通は0:成功)
Expand Down
9 changes: 9 additions & 0 deletions doc/howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ target_nodes ["www-1.example","www-2.example","db-1.example"]
# attack command
attack_cmd "ssh attacker.example ./bin/ghakai www-1.example.yml 2>/dev/null"

# logger
logger "gargor.log"

# or optional settings like blows:
#
# logger "gargor.log" do |log|
# log.level = Logger::INFO
# end


# evalute of the attack
# code: exit code of attack_cmd command (0 => succees)
Expand Down

0 comments on commit ac63c72

Please sign in to comment.