MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / getMsgPrefix

Method getMsgPrefix

packages/editor-core/src/event-bus.ts:29–35  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

27 }
28
29 private getMsgPrefix(type: string): string {
30 if (this.name && this.name.length > 0) {
31 return `[${this.name}][event-${type}]`;
32 } else {
33 return `[*][event-${type}]`;
34 }
35 }
36
37 private getLogger(): Logger {
38 if (this.name && this.name.length > 0) {

Callers 4

onMethod · 0.95
prependListenerMethod · 0.95
offMethod · 0.95
emitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected