-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
303 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
This program and the accompanying materials are | ||
made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
|
||
SPDX-License-Identifier: EPL-2.0 | ||
|
||
Copyright Contributors to the Zowe Project. | ||
# zlux-shared | ||
This repository contains Zowe App Framework components that are utilized both by the server and in the web browser, such as the [Logger](https://github.com/zowe/zlux/wiki/Logging) and HTML parsing code. | ||
|
||
**To request features or report bugs, please use the issues page at the [zlux repo](https://github.com/zowe/zlux/issues) with the client or server infrastructure tags** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,92 @@ | ||
|
||
/* | ||
This program and the accompanying materials are | ||
made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
SPDX-License-Identifier: EPL-2.0 | ||
Copyright Contributors to the Zowe Project. | ||
/* | ||
This program and the accompanying materials are | ||
made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
SPDX-License-Identifier: EPL-2.0 | ||
Copyright Contributors to the Zowe Project. | ||
*/ | ||
|
||
type MessageTable = any; | ||
export declare enum LogLevel { | ||
SEVERE = 0, | ||
WARNING = 1, | ||
CRITICAL = 0, | ||
WARN = 1, | ||
INFO = 2, | ||
FINE = 3, | ||
DEBUG = 3, | ||
FINER = 4, | ||
FINEST = 5 | ||
TRACE = 5 | ||
} | ||
export declare class ComponentLogger implements ZLUX.ComponentLogger { | ||
private parentLogger; | ||
private componentName; | ||
private _messages: MessageTable; | ||
SEVERE: number; | ||
CRITICAL: number; | ||
WARN: number; | ||
WARNING: number; | ||
INFO: number; | ||
FINE: number; | ||
DEBUG: number; | ||
FINER: number; | ||
FINEST: number; | ||
constructor(parentLogger: Logger, componentName: string); | ||
TRACE: number; | ||
constructor(parentLogger: Logger, componentName: string, messages?: MessageTable); | ||
makeSublogger(componentNameSuffix: string): ComponentLogger; | ||
log(minimumLevel: number, ...loggableItems: any[]): void; | ||
severe(...loggableItems: any[]): void; | ||
critical(...loggableItems: any[]): void; | ||
info(...loggableItems: any[]): void; | ||
warn(...loggableItems: any[]): void; | ||
debug(...loggableItems: any[]): void; | ||
trace(...loggableItems: any[]): void; | ||
} | ||
export declare class Logger implements ZLUX.Logger { | ||
private destinations; | ||
private configuration; | ||
private componentLoggers; | ||
private previousPatterns; | ||
private knownComponentNames; | ||
static SEVERE: number; | ||
static CRITICAL: number; | ||
static WARNING: number; | ||
static WARN: number; | ||
static INFO: number; | ||
static DEBUG: number; | ||
static FINE: number; | ||
static FINER: number; | ||
static FINEST: number; | ||
constructor(); | ||
static TRACE: number; | ||
private static processString; | ||
private static username; | ||
private static euid?; | ||
private static os?; | ||
private static offsetMs; | ||
private static seperator; | ||
private static useV8Tracing; | ||
constructor(offsetMs?: number); | ||
toggleV8Tracing(): boolean; | ||
_setBrowserUsername(username: string): void; | ||
addDestination(destinationCallback: (componentName: string, minimumLevel: LogLevel, ...loggableItems: any[]) => void): void; | ||
private shouldLogInternal; | ||
private static createPrependingStrings; | ||
private consoleLogInternal; | ||
makeDefaultDestination(prependDate?: boolean, prependName?: boolean, prependLevel?: boolean): (x: string, y: LogLevel, z: string) => void; | ||
makeDefaultDestination(prependDate?: boolean, prependName?: boolean, prependLevel?: boolean, prependProcess?: boolean, prependUser?: boolean): (x: string, y: LogLevel, z: string) => void; | ||
log(componentName: string, minimumLevel: LogLevel, ...loggableItems: any[]): void; | ||
setLogLevelForComponentPattern(componentNamePattern: string, level: LogLevel): void; | ||
setLogLevelForComponentName(componentName: string, level: LogLevel | number): void; | ||
getComponentLevel(componentName: string): LogLevel; | ||
getConfig(): any; | ||
private noteComponentNameInternal; | ||
private replayPatternsOnLogger; | ||
makeComponentLogger(componentName: string): ComponentLogger; | ||
makeComponentLogger(componentName: string, messages?: MessageTable): ComponentLogger; | ||
} | ||
|
||
/* | ||
This program and the accompanying materials are | ||
made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
SPDX-License-Identifier: EPL-2.0 | ||
Copyright Contributors to the Zowe Project. | ||
/* | ||
This program and the accompanying materials are | ||
made available under the terms of the Eclipse Public License v2.0 which accompanies | ||
this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html | ||
SPDX-License-Identifier: EPL-2.0 | ||
Copyright Contributors to the Zowe Project. | ||
*/ |
Oops, something went wrong.