Skip to content

Commit

Permalink
Zowe Suite v1.5.0 RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Sep 17, 2019
2 parents 528ca62 + 8c6c084 commit d91cd2d
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 73 deletions.
11 changes: 11 additions & 0 deletions README.md
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**
74 changes: 48 additions & 26 deletions src/dts/logger.d.ts
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.
*/
Loading

0 comments on commit d91cd2d

Please sign in to comment.