mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
New logging system (#319)
* First pass at adding new logging system * NewLogger * NewLogger * WIP * silly bug fix * :D removed files * removed old logging interface * added tests * added tests * Started to add new lines to all f calls * Added subsystem log types * Logger improvements * Further performance improvements * changes to logger and sublogger creation * Renamed Logging types * removed old print statement * changes based on feedback * moved sublogger types to own file * :) * added console as output type * added get level command * added get/set log level via grpc command * added check for output being empty for migration support * first pass at log rotation * added log rotation * :D derp fixed * added tests * changes based on feedback * changed log type * comments * renamed file -> fileSettings * typo fix * changes based on feedback * gofmt ran on additional files * gofmt ran on additional files
This commit is contained in:
@@ -480,6 +480,30 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/getloggerdetails": {
|
||||
"get": {
|
||||
"operationId": "GetLoggerDetails",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "logger",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"GoCryptoTrader"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/getorder": {
|
||||
"post": {
|
||||
"operationId": "GetOrder",
|
||||
@@ -732,6 +756,32 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/setloggerdetails": {
|
||||
"post": {
|
||||
"operationId": "SetLoggerDetails",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gctrpcGetLoggerDetailsResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/gctrpcSetLoggerDetailsRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"GoCryptoTrader"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/simulateorder": {
|
||||
"post": {
|
||||
"operationId": "SimulateOrder",
|
||||
@@ -1371,6 +1421,27 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcGetLoggerDetailsResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"info": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
"debug": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
"warn": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
},
|
||||
"error": {
|
||||
"type": "boolean",
|
||||
"format": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcGetOrderRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -1742,6 +1813,17 @@
|
||||
"gctrpcRemovePortfolioAddressResponse": {
|
||||
"type": "object"
|
||||
},
|
||||
"gctrpcSetLoggerDetailsRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"logger": {
|
||||
"type": "string"
|
||||
},
|
||||
"level": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gctrpcSimulateOrderRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user