Initialize the instance with the host, the request URL, and the method ("GET" or "POST")
(self, host, url, method="GET", secure=False, credentials=None,
context=None)
| 1251 | POST semantics. |
| 1252 | """ |
| 1253 | def __init__(self, host, url, method="GET", secure=False, credentials=None, |
| 1254 | context=None): |
| 1255 | """ |
| 1256 | Initialize the instance with the host, the request URL, and the method |
| 1257 | ("GET" or "POST") |
| 1258 | """ |
| 1259 | logging.Handler.__init__(self) |
| 1260 | method = method.upper() |
| 1261 | if method not in ["GET", "POST"]: |
| 1262 | raise ValueError("method must be GET or POST") |
| 1263 | if not secure and context is not None: |
| 1264 | raise ValueError("context parameter only makes sense " |
| 1265 | "with secure=True") |
| 1266 | self.host = host |
| 1267 | self.url = url |
| 1268 | self.method = method |
| 1269 | self.secure = secure |
| 1270 | self.credentials = credentials |
| 1271 | self.context = context |
| 1272 | |
| 1273 | def mapLogRecord(self, record): |
| 1274 | """ |