MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / getColor

Function getColor

packages/utils/src/logger.ts:95–101  ·  view source on GitHub ↗
(bizName: string)

Source from the content-addressed store, hash-verified

93};
94
95const getColor = (bizName: string) => {
96 if (!bizNameColorConfig[bizName]) {
97 const color = bizNameColors[Object.keys(bizNameColorConfig).length % bizNameColors.length];
98 bizNameColorConfig[bizName] = color;
99 }
100 return bizNameColorConfig[bizName];
101};
102
103const getLogArgs = (args: any, bizName: string, logLevel: string) => {
104 const color = getColor(bizName);

Callers 1

getLogArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…