프로그램 사용/SMB(Samba)

삼바 디버그 메시지 설정하기

구차니 2009. 12. 18. 16:50
smb.conf 파일에서

log level = [0..100]

으로 설정하면 된다.
(소스 상에서는 100까지 존재한다.)

[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/bugreport.html]


Option

Parameters

Function

Default

Scope

log file

string (fully-qualified filename)

Sets the name and location of the log file that Samba is to use. Uses standard variables.

Specified in Samba makefile

Global

log level

(debug level)

numerical (0-10)

Sets the amount of log/debug messages that are sent to the log file. 0 is none, 3 is considerable.

1

Global

max log size

numerical (size in KB)

Sets the maximum size of log file. After the log exceeds this size, the file will be renamed to .bak and a new log file started.

5000

Global


이 문서에 의하면 [0...10] 그리고 기본은 1이라고 한다.
[링크 : http://oreilly.com/catalog/samba/chapter/book/ch04_08.html#ch04-92838]



참고로 10 level로 하면 로그파일의 용량이 대책이 서지않는다.
디버깅 용도라며나 max log size를 기본값으로 사용하거나, 적절하게 키워주는 것이 좋을듯 하다.
(단지 브라우징하고, 파일 하나 복사하는데 1.5MB의 로그 파일이 생성되었다.)