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)
| 1231 | POST semantics. |
| 1232 | """ |
| 1233 | def __init__(self, host, url, method="GET", secure=False, credentials=None, |
| 1234 | context=None): |
| 1235 | """ |
| 1236 | Initialize the instance with the host, the request URL, and the method |
| 1237 | ("GET" or "POST") |
| 1238 | """ |
| 1239 | logging.Handler.__init__(self) |
| 1240 | method = method.upper() |
| 1241 | if method not in ["GET", "POST"]: |
| 1242 | raise ValueError("method must be GET or POST") |
| 1243 | if not secure and context is not None: |
| 1244 | raise ValueError("context parameter only makes sense " |
| 1245 | "with secure=True") |
| 1246 | self.host = host |
| 1247 | self.url = url |
| 1248 | self.method = method |
| 1249 | self.secure = secure |
| 1250 | self.credentials = credentials |
| 1251 | self.context = context |
| 1252 | |
| 1253 | def mapLogRecord(self, record): |
| 1254 | """ |