Source code for crossbar._log_categories

#####################################################################################
#
#  Copyright (c) typedef int GmbH
#  SPDX-License-Identifier: EUPL-1.2
#
#####################################################################################

# The log categories
[docs] log_categories = { "DBG100": "DEBUG {x} {y} {z}", # CBXXX - Generic Crossbar logs "CB500": "Unhandled exception in Crossbar.", "CB501": "Unhandled exception in Crossbar: {exc}", # ARXXX - Adapter, REST Bridge "AR100": "REST bridge request recieved. (path='{path}', method={method})", "AR200": "REST bridge publish succeeded. ({code}, {reason})", "AR201": "REST bridge webhook event succeeded.", "AR202": "REST bridge call succeeded.", "AR203": "REST bridge signature valid.", "AR400": "Malformed request to the REST bridge.", "AR405": "Method not accepted by the REST bridge. ({method} not allowed, only {allowed})", "AR413": "Request too long. ({length} is longer than accepted {accepted})", "AR450": "Non-accepted request encoding, must be UTF-8.", "AR451": "Non-decodable request body, was not UTF-8.", "AR452": "Non-accepted content type. (must be one of '{accepted}', not '{given}')", "AR453": "Request body was invalid JSON.", "AR454": "Request body was valid JSON, but not well formed (must be a dict).", "AR455": "Request body was valid JSON, but not well formed (missing key '{key}').", "AR456": "REST bridge publish failed.", "AR457": "REST bridge webhook request failed.", "AR458": "REST bridge call failed: {exc}", "AR459": "REST bridge signature secret not valid.", "AR460": "REST bridge signature key not valid.", "AR461": "REST bridge signature was invalid (missing mandatory field - {reason}).", "AR462": "REST bridge signature was invalid ({reason}).", "AR463": "Multiple versions of the same header is not allowed.", "AR464": "Request expired, too old timestamp.", "AR465": "Body length ({bodylen}) is different to Content-Length header ({conlen}).", "AR466": "Request denied based on IP address.", "AR467": "GitHub signature missing or invalid.", # MQXXX - Adapter, MQTT Bridge "MQ100": "Got packet from '{client_id}': {packet!r}", "MQ101": "Sent packet to '{client_id}': {packet!r}", "MQ200": "Successful connection from '{client_id}'", "MQ201": "Received a QoS 0 Publish from '{client_id}'", "MQ202": "Received a QoS 1 Publish from '{client_id}'", "MQ203": "Received a QoS 2 Publish from '{client_id}'", "MQ204": "Received a Disconnect from '{client_id}', closing connection", "MQ303": "Got a non-allowed QoS value in the publish queue, dropping it.", "MQ400": "MQTT client '{client_id}' timed out after recieving no full packets for {seconds}", "MQ401": "Protocol violation from '{client_id}', terminating connection: {error}", "MQ402": "Got a packet ('{packet_id}') from '{client_id}' that is invalid for a server, terminating connection", "MQ403": "Got a Publish packet from '{client_id}' that has both QoS bits set, terminating connection", "MQ404": "No transport to disconnect when timing out client", "MQ500": "Error handling a Connect, dropping connection", "MQ501": "Error handling a Subscribe from '{client_id}', dropping connection", "MQ502": "Error handling an Unsubscribe from '{client_id}', dropping connection", "MQ503": "Error handling a QoS 0 Publish from '{client_id}', dropping connection", "MQ504": "Error handling a QoS 1 Publish from '{client_id}', dropping connection", "MQ505": "Error handling a QoS 2 Publish from '{client_id}', dropping connection", }
[docs] log_keys = log_categories.keys()