webcface.log_handler module

class webcface.log_handler.Handler(data: ClientData, name: str)[source]

Bases: Handler

emit(record: LogRecord) None[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

class webcface.log_handler.LogData[source]

Bases: object

data: List[LogLine]
sent_lines: int
class webcface.log_handler.LogLine(level: int, time: datetime, message: str)[source]

Bases: object

level: int
message: str
time: datetime
class webcface.log_handler.LogWriteIO(data: ClientData, name: str)[source]

Bases: TextIOBase

isatty() bool[source]
Returns:

False

readable() bool[source]
Returns:

False

seekable() bool[source]
Returns:

False

writable() bool[source]
Returns:

True

write(s: str) int[source]

webcfaceに文字列を出力すると同時にsys.__stderr__にも流す