!pythonでロギング
!!ファイルに書きだす
>> code python
import logging
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s',
filename='hourly.log',
filemode='a'
)
logging.debug("write " + BASE + name);
<<code
!!標準出力に書きだす
>> code python
import logging
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(message)s'
)
logging.debug("write " + BASE + name);
<<
!!リファレンス
- http://www.python.jp/doc/2.4/lib/module-logging.html
!ftpでエラー
CentOS
http://ameblo.jp/yukozutakeshizu/entry-10590573287.html
>>
500 This security scheme is not implemented
500 This security scheme is not implemented
KERBEROS_V4 rejected as an authentication type
<<
これなんだろうねと思ってた
>>
$ which ftp
/usr/kerberos/bin/ftp
<<
確かに。
とりあえず/usr/bin/ftp 実行したら何とかなったけど何だろ-なー
!せっかくの
せっかくの休みなのでちょっと考える
- 髪がうぜぇ
-- 切ってこよう → 切った
- ログ収集と監視
-- 手元のスクリプトのロギング修正
- popimg調査
-- なぜ落ちるのか
-- →ログしこんだ
- Node ninja
-- なんかやる
- 自己紹介のあれ
-- 早くやるんだっ → 少し進んだ
- karuki-wiki
-- むー時間無い5643382
wiki
1371358596