sf-debug-log 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -12
- package/lib/commands/debuglevel/new.d.ts +17 -0
- package/lib/commands/debuglevel/new.js +85 -0
- package/lib/commands/debuglevel/new.js.map +1 -0
- package/lib/utils.d.ts +2 -0
- package/lib/utils.js +9 -1
- package/lib/utils.js.map +1 -1
- package/messages/debug.retrieve.md +7 -7
- package/messages/debuglevel.new.md +19 -0
- package/messages/trace.new.md +7 -3
- package/oclif.manifest.json +51 -11
- package/package.json +202 -199
package/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Commands to manage Salesforce debug logs.
|
|
4
4
|
|
|
5
|
+
Create trace flags for any user in the org selecting the debug level and time.
|
|
6
|
+
Retrive Apex logs related to a specific user to analyze them locally.
|
|
7
|
+
|
|
5
8
|
## Install
|
|
6
9
|
|
|
7
10
|
```bash
|
|
@@ -17,16 +20,14 @@ sf plugins install sf-debug-log
|
|
|
17
20
|
|
|
18
21
|
## `sf trace new`
|
|
19
22
|
|
|
20
|
-
Create a new trace flag.
|
|
21
|
-
|
|
22
23
|
```
|
|
23
24
|
USAGE
|
|
24
|
-
$ sf trace new
|
|
25
|
+
$ sf trace new -o <value> [-u <value>] [-t <value>]
|
|
25
26
|
|
|
26
27
|
FLAGS
|
|
27
|
-
-o, --targetusername=<value> [required]
|
|
28
|
-
-u, --name=<value> The name of the user to trace.
|
|
28
|
+
-o, --targetusername=<value> [required] Username or alias of the target Salesforce org.
|
|
29
29
|
-t, --time=<value> [default: 60] The number of minutes to trace.
|
|
30
|
+
-u, --name=<value> [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.
|
|
30
31
|
|
|
31
32
|
GLOBAL FLAGS
|
|
32
33
|
--json Format output as json.
|
|
@@ -34,28 +35,31 @@ GLOBAL FLAGS
|
|
|
34
35
|
DESCRIPTION
|
|
35
36
|
Create a new trace flag.
|
|
36
37
|
|
|
38
|
+
This command is used to create a trace flag for a specific user in the Salesforce org.
|
|
39
|
+
|
|
37
40
|
EXAMPLES
|
|
38
41
|
sf trace new -o DeveloperEdition -u "Raffaele Preziosi" -t 10
|
|
39
42
|
```
|
|
40
43
|
|
|
41
44
|
## `sf debug retrieve`
|
|
42
45
|
|
|
43
|
-
Retrieve apex log files.
|
|
44
|
-
|
|
45
46
|
```
|
|
46
47
|
USAGE
|
|
47
|
-
$
|
|
48
|
+
$ sf debug retrieve -o <value> [-u <value>] [-t <value>] [-d <value>]
|
|
48
49
|
|
|
49
50
|
FLAGS
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
-t, --time=<value>
|
|
51
|
+
-d, --folder=<value> [default: .sfdx/tools/debug/logs] The folder where the retrieved log files will be stored.
|
|
52
|
+
-o, --targetusername=<value> (required) Username or alias of the target Salesforce org.
|
|
53
|
+
-t, --time=<value> [default: 60] The number of minutes to retrieve log files for.
|
|
54
|
+
-u, --user=<value> [default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.
|
|
53
55
|
|
|
54
56
|
GLOBAL FLAGS
|
|
55
57
|
--json Format output as json.
|
|
56
58
|
|
|
57
59
|
DESCRIPTION
|
|
58
|
-
|
|
60
|
+
Retrieve Apex log files from the Salesforce platform.
|
|
61
|
+
|
|
62
|
+
This command allows you to retrieve Apex log files from a Salesforce org.
|
|
59
63
|
|
|
60
64
|
EXAMPLES
|
|
61
65
|
sf debug retrieve -o DeveloperEdition -u "Raffaele Preziosi" -t 10
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
export type DebuglevelNewResult = {
|
|
3
|
+
isSuccess: boolean;
|
|
4
|
+
error?: string;
|
|
5
|
+
};
|
|
6
|
+
export default class DebuglevelNew extends SfCommand<DebuglevelNewResult> {
|
|
7
|
+
static readonly summary: string;
|
|
8
|
+
static readonly description: string;
|
|
9
|
+
static readonly examples: string[];
|
|
10
|
+
static readonly flags: {
|
|
11
|
+
targetusername: import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
+
developername: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<DebuglevelNewResult>;
|
|
15
|
+
private createDebugLevelRecord;
|
|
16
|
+
private selectDebugLevel;
|
|
17
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable class-methods-use-this */
|
|
4
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
5
|
+
const core_1 = require("@salesforce/core");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
core_1.Messages.importMessagesDirectory(__dirname);
|
|
8
|
+
const messages = core_1.Messages.loadMessages('sf-debug-log', 'debuglevel.new');
|
|
9
|
+
const DEBUG_CATEGORIES = [
|
|
10
|
+
'Database',
|
|
11
|
+
'Workflow',
|
|
12
|
+
'Validation',
|
|
13
|
+
'Callout',
|
|
14
|
+
'ApexCode',
|
|
15
|
+
'ApexProfiling',
|
|
16
|
+
'Visualforce',
|
|
17
|
+
'System',
|
|
18
|
+
'Wave',
|
|
19
|
+
'Nba',
|
|
20
|
+
];
|
|
21
|
+
const DEBUG_LEVELS = ['NONE', 'INTERNAL', 'FINEST', 'FINER', 'FINE', 'DEBUG', 'INFO', 'WARN', 'ERROR'];
|
|
22
|
+
class DebuglevelNew extends sf_plugins_core_1.SfCommand {
|
|
23
|
+
async run() {
|
|
24
|
+
const { flags } = await this.parse(DebuglevelNew);
|
|
25
|
+
const conn = flags.targetusername.getConnection();
|
|
26
|
+
try {
|
|
27
|
+
const debugLevel = this.createDebugLevelRecord(flags.developername);
|
|
28
|
+
for (const category of DEBUG_CATEGORIES) {
|
|
29
|
+
// eslint-disable-next-line no-await-in-loop
|
|
30
|
+
const level = await this.selectDebugLevel(category);
|
|
31
|
+
debugLevel[category] = level;
|
|
32
|
+
}
|
|
33
|
+
const result = await (0, utils_1.createDebugLevel)(conn, debugLevel);
|
|
34
|
+
if (!result.isSuccess) {
|
|
35
|
+
this.error(`Error to create Debug Level: ${result.error}`);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.log(`Debug Level ${flags.developername} created successfully.`);
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
catch (exception) {
|
|
43
|
+
const err = exception instanceof Error ? exception.message : String(exception);
|
|
44
|
+
this.log(`Error to create Debug Level: ${err}`);
|
|
45
|
+
return {
|
|
46
|
+
isSuccess: false,
|
|
47
|
+
error: err,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
createDebugLevelRecord(developerName) {
|
|
52
|
+
return {
|
|
53
|
+
DeveloperName: developerName,
|
|
54
|
+
MasterLabel: developerName,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
async selectDebugLevel(category) {
|
|
58
|
+
const levels = DEBUG_LEVELS;
|
|
59
|
+
const level = await this.prompt({
|
|
60
|
+
type: 'list',
|
|
61
|
+
name: 'level',
|
|
62
|
+
message: `Select ${category} debug level`,
|
|
63
|
+
loop: false,
|
|
64
|
+
choices: levels,
|
|
65
|
+
});
|
|
66
|
+
return level.level;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
DebuglevelNew.summary = messages.getMessage('summary');
|
|
70
|
+
DebuglevelNew.description = messages.getMessage('description');
|
|
71
|
+
DebuglevelNew.examples = messages.getMessages('examples');
|
|
72
|
+
DebuglevelNew.flags = {
|
|
73
|
+
targetusername: sf_plugins_core_1.Flags.requiredOrg({
|
|
74
|
+
summary: messages.getMessage('flags.targetusername.summary'),
|
|
75
|
+
char: 'o',
|
|
76
|
+
required: true,
|
|
77
|
+
}),
|
|
78
|
+
developername: sf_plugins_core_1.Flags.string({
|
|
79
|
+
summary: messages.getMessage('flags.developerName.summary'),
|
|
80
|
+
char: 'n',
|
|
81
|
+
required: true,
|
|
82
|
+
}),
|
|
83
|
+
};
|
|
84
|
+
exports.default = DebuglevelNew;
|
|
85
|
+
//# sourceMappingURL=new.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.js","sourceRoot":"","sources":["../../../src/commands/debuglevel/new.ts"],"names":[],"mappings":";;AAAA,2CAA2C;AAC3C,iEAA+D;AAC/D,2CAAwD;AACxD,uCAA+C;AAE/C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAEzE,MAAM,gBAAgB,GAAG;IACvB,UAAU;IACV,UAAU;IACV,YAAY;IACZ,SAAS;IACT,UAAU;IACV,eAAe;IACf,aAAa;IACb,QAAQ;IACR,MAAM;IACN,KAAK;CACN,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAavG,MAAqB,aAAc,SAAQ,2BAA8B;IAkBhE,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAClD,MAAM,IAAI,GAAe,KAAK,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;QAE9D,IAAI;YACF,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;YAEpE,KAAK,MAAM,QAAQ,IAAI,gBAAgB,EAAE;gBACvC,4CAA4C;gBAC5C,MAAM,KAAK,GAAG,MAAM,IAAI,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C,yBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AACjD,sBAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;AAE5C,mBAAK,GAAG;IAC7B,cAAc,EAAE,uBAAK,CAAC,WAAW,CAAC;QAChC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;QAC5D,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,aAAa,EAAE,uBAAK,CAAC,MAAM,CAAC;QAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,6BAA6B,CAAC;QAC3D,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAhBiB,aAAa"}
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Connection } from '@salesforce/core';
|
|
2
2
|
import { Record } from 'jsforce';
|
|
3
3
|
import { TraceNewResult } from './commands/trace/new';
|
|
4
|
+
import { DebuglevelNewResult } from './commands/debuglevel/new';
|
|
4
5
|
export declare function createFile(path: string, contents: string): Promise<void>;
|
|
5
6
|
export declare function getUserId(connection: Connection, inputUser: string): Promise<string>;
|
|
6
7
|
export declare function getActiveTraceFlag(conn: Connection, userId: string): Promise<Record | undefined>;
|
|
7
8
|
export declare function getDebugLevels(conn: Connection): Promise<Record[]>;
|
|
8
9
|
export declare function createTraceFlag(conn: Connection, userId: string, debugLevelId: string, time: number): Promise<TraceNewResult>;
|
|
10
|
+
export declare function createDebugLevel(conn: Connection, debugLevel: Record): Promise<DebuglevelNewResult>;
|
package/lib/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTraceFlag = exports.getDebugLevels = exports.getActiveTraceFlag = exports.getUserId = exports.createFile = void 0;
|
|
3
|
+
exports.createDebugLevel = exports.createTraceFlag = exports.getDebugLevels = exports.getActiveTraceFlag = exports.getUserId = exports.createFile = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const util_1 = require("util");
|
|
6
6
|
const fs_1 = require("fs");
|
|
@@ -73,4 +73,12 @@ async function createTraceFlag(conn, userId, debugLevelId, time) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
exports.createTraceFlag = createTraceFlag;
|
|
76
|
+
async function createDebugLevel(conn, debugLevel) {
|
|
77
|
+
const result = await conn.tooling.sobject('DebugLevel').create(debugLevel);
|
|
78
|
+
return {
|
|
79
|
+
isSuccess: result.success,
|
|
80
|
+
error: result.success ? undefined : result.errors[0].message,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
exports.createDebugLevel = createDebugLevel;
|
|
76
84
|
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,+BAAiC;AACjC,2BAAsC;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,+BAAiC;AACjC,2BAAsC;AAMtC,MAAM,YAAY,GAAG,IAAA,gBAAS,EAAC,UAAK,CAAC,CAAC;AACtC,MAAM,gBAAgB,GAAG,IAAA,gBAAS,EAAC,cAAS,CAAC,CAAC;AAE9C,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAE/B,KAAK,UAAU,UAAU,CAAC,IAAY,EAAE,QAAgB;IAC7D,MAAM,YAAY,CAAC,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACzC,CAAC;AAHD,gCAGC;AAEM,KAA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AAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACvF,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,OAAO;QACzB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO;KAC7D,CAAC;AACJ,CAAC;AAND,4CAMC"}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Retrieve
|
|
3
|
+
Retrieve Apex log files from the Salesforce platform.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This command allows you to retrieve Apex log files from a Salesforce org.
|
|
8
8
|
|
|
9
9
|
# flags.user.summary
|
|
10
10
|
|
|
11
|
-
Username or
|
|
11
|
+
[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.
|
|
12
12
|
|
|
13
13
|
# flags.targetusername.summary
|
|
14
14
|
|
|
15
|
-
Username or alias
|
|
15
|
+
Username or alias of the target Salesforce org.
|
|
16
16
|
|
|
17
17
|
# flags.time.summary
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
The number of minutes to retrieve log files for.
|
|
20
20
|
|
|
21
21
|
# flags.folder.summary
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
The folder where the retrieved log files will be stored.
|
|
24
24
|
|
|
25
25
|
# error.saveLogs
|
|
26
26
|
|
|
@@ -28,4 +28,4 @@ Failed to save logs: %s.
|
|
|
28
28
|
|
|
29
29
|
# examples
|
|
30
30
|
|
|
31
|
-
-
|
|
31
|
+
sf debug retrieve -o MyDeveloperEdition -u "Raffaele Preziosi" -t 10
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create a new DebugLevel.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
More information about a command. Don't repeat the summary.
|
|
8
|
+
|
|
9
|
+
# flags.targetusername.summary
|
|
10
|
+
|
|
11
|
+
Username or alias of the target Salesforce org.
|
|
12
|
+
|
|
13
|
+
# flags.developerName.summary
|
|
14
|
+
|
|
15
|
+
The developer name of the new DebugLevel.
|
|
16
|
+
|
|
17
|
+
# examples
|
|
18
|
+
|
|
19
|
+
- <%= config.bin %> <%= command.id %>
|
package/messages/trace.new.md
CHANGED
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Create a trace flag for a user.
|
|
4
4
|
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
This command is used to create a trace flag for a specific user in the Salesforce org.
|
|
8
|
+
|
|
5
9
|
# flags.targetusername.summary
|
|
6
10
|
|
|
7
|
-
|
|
11
|
+
Username or alias of the target Salesforce org.
|
|
8
12
|
|
|
9
13
|
# flags.user.summary
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.
|
|
12
16
|
|
|
13
17
|
# flags.time.summary
|
|
14
18
|
|
|
@@ -20,4 +24,4 @@ Create User Trace Flag failed: %s.
|
|
|
20
24
|
|
|
21
25
|
# examples
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
sf trace new -o MyDeveloperEdition -u "Raffaele Preziosi" -t 10
|
package/oclif.manifest.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.22",
|
|
3
3
|
"commands": {
|
|
4
4
|
"debug:retrieve": {
|
|
5
5
|
"id": "debug:retrieve",
|
|
6
|
-
"summary": "Retrieve
|
|
7
|
-
"description": "
|
|
6
|
+
"summary": "Retrieve Apex log files from the Salesforce platform.",
|
|
7
|
+
"description": "This command allows you to retrieve Apex log files from a Salesforce org.",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"pluginName": "sf-debug-log",
|
|
10
10
|
"pluginAlias": "sf-debug-log",
|
|
11
11
|
"pluginType": "core",
|
|
12
12
|
"aliases": [],
|
|
13
13
|
"examples": [
|
|
14
|
-
"
|
|
14
|
+
"sf debug retrieve -o MyDeveloperEdition -u \"Raffaele Preziosi\" -t 10"
|
|
15
15
|
],
|
|
16
16
|
"flags": {
|
|
17
17
|
"json": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"name": "targetusername",
|
|
26
26
|
"type": "option",
|
|
27
27
|
"char": "o",
|
|
28
|
-
"summary": "Username or alias
|
|
28
|
+
"summary": "Username or alias of the target Salesforce org.",
|
|
29
29
|
"required": true,
|
|
30
30
|
"multiple": false
|
|
31
31
|
},
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"name": "user",
|
|
34
34
|
"type": "option",
|
|
35
35
|
"char": "u",
|
|
36
|
-
"summary": "Username or
|
|
36
|
+
"summary": "[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.",
|
|
37
37
|
"multiple": false
|
|
38
38
|
},
|
|
39
39
|
"time": {
|
|
40
40
|
"name": "time",
|
|
41
41
|
"type": "option",
|
|
42
42
|
"char": "t",
|
|
43
|
-
"summary": "
|
|
43
|
+
"summary": "The number of minutes to retrieve log files for.",
|
|
44
44
|
"multiple": false,
|
|
45
45
|
"default": 60
|
|
46
46
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"name": "folder",
|
|
49
49
|
"type": "option",
|
|
50
50
|
"char": "d",
|
|
51
|
-
"summary": "
|
|
51
|
+
"summary": "The folder where the retrieved log files will be stored.",
|
|
52
52
|
"multiple": false,
|
|
53
53
|
"default": ".sfdx/tools/debug/logs"
|
|
54
54
|
}
|
|
@@ -56,6 +56,46 @@
|
|
|
56
56
|
"args": {},
|
|
57
57
|
"hasDynamicHelp": true
|
|
58
58
|
},
|
|
59
|
+
"debuglevel:new": {
|
|
60
|
+
"id": "debuglevel:new",
|
|
61
|
+
"summary": "Create a new DebugLevel.",
|
|
62
|
+
"description": "More information about a command. Don't repeat the summary.",
|
|
63
|
+
"strict": true,
|
|
64
|
+
"pluginName": "sf-debug-log",
|
|
65
|
+
"pluginAlias": "sf-debug-log",
|
|
66
|
+
"pluginType": "core",
|
|
67
|
+
"aliases": [],
|
|
68
|
+
"examples": [
|
|
69
|
+
"<%= config.bin %> <%= command.id %>"
|
|
70
|
+
],
|
|
71
|
+
"flags": {
|
|
72
|
+
"json": {
|
|
73
|
+
"name": "json",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"description": "Format output as json.",
|
|
76
|
+
"helpGroup": "GLOBAL",
|
|
77
|
+
"allowNo": false
|
|
78
|
+
},
|
|
79
|
+
"targetusername": {
|
|
80
|
+
"name": "targetusername",
|
|
81
|
+
"type": "option",
|
|
82
|
+
"char": "o",
|
|
83
|
+
"summary": "Username or alias of the target Salesforce org.",
|
|
84
|
+
"required": true,
|
|
85
|
+
"multiple": false
|
|
86
|
+
},
|
|
87
|
+
"developername": {
|
|
88
|
+
"name": "developername",
|
|
89
|
+
"type": "option",
|
|
90
|
+
"char": "n",
|
|
91
|
+
"summary": "The developer name of the new DebugLevel.",
|
|
92
|
+
"required": true,
|
|
93
|
+
"multiple": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"args": {},
|
|
97
|
+
"hasDynamicHelp": true
|
|
98
|
+
},
|
|
59
99
|
"trace:new": {
|
|
60
100
|
"id": "trace:new",
|
|
61
101
|
"summary": "Create a trace flag for a user.",
|
|
@@ -65,7 +105,7 @@
|
|
|
65
105
|
"pluginType": "core",
|
|
66
106
|
"aliases": [],
|
|
67
107
|
"examples": [
|
|
68
|
-
"
|
|
108
|
+
"sf trace new -o MyDeveloperEdition -u \"Raffaele Preziosi\" -t 10"
|
|
69
109
|
],
|
|
70
110
|
"flags": {
|
|
71
111
|
"json": {
|
|
@@ -79,7 +119,7 @@
|
|
|
79
119
|
"name": "targetusername",
|
|
80
120
|
"type": "option",
|
|
81
121
|
"char": "o",
|
|
82
|
-
"summary": "
|
|
122
|
+
"summary": "Username or alias of the target Salesforce org.",
|
|
83
123
|
"required": true,
|
|
84
124
|
"multiple": false
|
|
85
125
|
},
|
|
@@ -87,7 +127,7 @@
|
|
|
87
127
|
"name": "user",
|
|
88
128
|
"type": "option",
|
|
89
129
|
"char": "u",
|
|
90
|
-
"summary": "
|
|
130
|
+
"summary": "[default: targetusername] Username, Name, or ID of the user for whom you want to retrieve the logs.",
|
|
91
131
|
"multiple": false
|
|
92
132
|
},
|
|
93
133
|
"time": {
|
package/package.json
CHANGED
|
@@ -1,199 +1,202 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sf-debug-log",
|
|
3
|
-
"description": "Manage Salesforce Debug Logs",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"dependencies": {
|
|
6
|
-
"@oclif/core": "^2.11.8",
|
|
7
|
-
"@salesforce/core": "^5.2.0",
|
|
8
|
-
"@salesforce/kit": "^3.0.8",
|
|
9
|
-
"@salesforce/sf-plugins-core": "^3.1.14",
|
|
10
|
-
"sanitize-filename": "^1.6.3",
|
|
11
|
-
"tslib": "^2"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@salesforce/cli-plugins-testkit": "^4.3.0",
|
|
15
|
-
"@salesforce/dev-config": "^4.0.1",
|
|
16
|
-
"@salesforce/dev-scripts": "^5.7.0",
|
|
17
|
-
"@salesforce/prettier-config": "^0.0.3",
|
|
18
|
-
"@salesforce/ts-sinon": "^1.4.14",
|
|
19
|
-
"@swc/core": "^1.3.19",
|
|
20
|
-
"@types/inquirer": "^9.0.3",
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
22
|
-
"@typescript-eslint/parser": "^5.62.0",
|
|
23
|
-
"chai": "^4.3.6",
|
|
24
|
-
"eslint": "^8.47.0",
|
|
25
|
-
"eslint-config-prettier": "^8.5.0",
|
|
26
|
-
"eslint-config-salesforce": "^2.0.2",
|
|
27
|
-
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
28
|
-
"eslint-plugin-import": "2.28.1",
|
|
29
|
-
"eslint-plugin-jsdoc": "^46.4.6",
|
|
30
|
-
"eslint-plugin-sf-plugin": "^1.16.2",
|
|
31
|
-
"husky": "^8.0.0",
|
|
32
|
-
"mocha": "^9.2.2",
|
|
33
|
-
"nyc": "^15.1.0",
|
|
34
|
-
"oclif": "^3.9.1",
|
|
35
|
-
"prettier": "^2.8.8",
|
|
36
|
-
"pretty-quick": "^3.1.3",
|
|
37
|
-
"shx": "0.3.4",
|
|
38
|
-
"sinon": "10.0.0",
|
|
39
|
-
"ts-node": "^10.9.1",
|
|
40
|
-
"typescript": "^5.1.6",
|
|
41
|
-
"wireit": "^0.10.0"
|
|
42
|
-
},
|
|
43
|
-
"engines": {
|
|
44
|
-
"node": ">=16.0.0"
|
|
45
|
-
},
|
|
46
|
-
"files": [
|
|
47
|
-
"/lib",
|
|
48
|
-
"/messages",
|
|
49
|
-
"/oclif.manifest.json"
|
|
50
|
-
],
|
|
51
|
-
"keywords": [
|
|
52
|
-
"force",
|
|
53
|
-
"salesforce",
|
|
54
|
-
"sfdx",
|
|
55
|
-
"salesforcedx",
|
|
56
|
-
"sfdx-plugin",
|
|
57
|
-
"sf-plugin",
|
|
58
|
-
"sf"
|
|
59
|
-
],
|
|
60
|
-
"license": "BSD-3-Clause",
|
|
61
|
-
"main": "lib/index.js",
|
|
62
|
-
"oclif": {
|
|
63
|
-
"commands": "./lib/commands",
|
|
64
|
-
"bin": "sf",
|
|
65
|
-
"topicSeparator": " ",
|
|
66
|
-
"devPlugins": [
|
|
67
|
-
"@oclif/plugin-help"
|
|
68
|
-
],
|
|
69
|
-
"topics": {
|
|
70
|
-
"trace": {
|
|
71
|
-
"description": "Manage Salesforce Trace Flags"
|
|
72
|
-
},
|
|
73
|
-
"debug": {
|
|
74
|
-
"description": "Manage Salesforce Debug Logs"
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
},
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
".
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"
|
|
177
|
-
]
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
]
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sf-debug-log",
|
|
3
|
+
"description": "Manage Salesforce Debug Logs",
|
|
4
|
+
"version": "0.0.22",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@oclif/core": "^2.11.8",
|
|
7
|
+
"@salesforce/core": "^5.2.0",
|
|
8
|
+
"@salesforce/kit": "^3.0.8",
|
|
9
|
+
"@salesforce/sf-plugins-core": "^3.1.14",
|
|
10
|
+
"sanitize-filename": "^1.6.3",
|
|
11
|
+
"tslib": "^2"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@salesforce/cli-plugins-testkit": "^4.3.0",
|
|
15
|
+
"@salesforce/dev-config": "^4.0.1",
|
|
16
|
+
"@salesforce/dev-scripts": "^5.7.0",
|
|
17
|
+
"@salesforce/prettier-config": "^0.0.3",
|
|
18
|
+
"@salesforce/ts-sinon": "^1.4.14",
|
|
19
|
+
"@swc/core": "^1.3.19",
|
|
20
|
+
"@types/inquirer": "^9.0.3",
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
22
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
23
|
+
"chai": "^4.3.6",
|
|
24
|
+
"eslint": "^8.47.0",
|
|
25
|
+
"eslint-config-prettier": "^8.5.0",
|
|
26
|
+
"eslint-config-salesforce": "^2.0.2",
|
|
27
|
+
"eslint-config-salesforce-typescript": "^1.1.2",
|
|
28
|
+
"eslint-plugin-import": "2.28.1",
|
|
29
|
+
"eslint-plugin-jsdoc": "^46.4.6",
|
|
30
|
+
"eslint-plugin-sf-plugin": "^1.16.2",
|
|
31
|
+
"husky": "^8.0.0",
|
|
32
|
+
"mocha": "^9.2.2",
|
|
33
|
+
"nyc": "^15.1.0",
|
|
34
|
+
"oclif": "^3.9.1",
|
|
35
|
+
"prettier": "^2.8.8",
|
|
36
|
+
"pretty-quick": "^3.1.3",
|
|
37
|
+
"shx": "0.3.4",
|
|
38
|
+
"sinon": "10.0.0",
|
|
39
|
+
"ts-node": "^10.9.1",
|
|
40
|
+
"typescript": "^5.1.6",
|
|
41
|
+
"wireit": "^0.10.0"
|
|
42
|
+
},
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=16.0.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"/lib",
|
|
48
|
+
"/messages",
|
|
49
|
+
"/oclif.manifest.json"
|
|
50
|
+
],
|
|
51
|
+
"keywords": [
|
|
52
|
+
"force",
|
|
53
|
+
"salesforce",
|
|
54
|
+
"sfdx",
|
|
55
|
+
"salesforcedx",
|
|
56
|
+
"sfdx-plugin",
|
|
57
|
+
"sf-plugin",
|
|
58
|
+
"sf"
|
|
59
|
+
],
|
|
60
|
+
"license": "BSD-3-Clause",
|
|
61
|
+
"main": "lib/index.js",
|
|
62
|
+
"oclif": {
|
|
63
|
+
"commands": "./lib/commands",
|
|
64
|
+
"bin": "sf",
|
|
65
|
+
"topicSeparator": " ",
|
|
66
|
+
"devPlugins": [
|
|
67
|
+
"@oclif/plugin-help"
|
|
68
|
+
],
|
|
69
|
+
"topics": {
|
|
70
|
+
"trace": {
|
|
71
|
+
"description": "Manage Salesforce Trace Flags"
|
|
72
|
+
},
|
|
73
|
+
"debug": {
|
|
74
|
+
"description": "Manage Salesforce Debug Logs"
|
|
75
|
+
},
|
|
76
|
+
"debuglevel": {
|
|
77
|
+
"description": "Manage Salesforce Debug Levels"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"scripts": {
|
|
82
|
+
"build": "wireit",
|
|
83
|
+
"clean": "sf-clean",
|
|
84
|
+
"clean-all": "sf-clean all",
|
|
85
|
+
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
86
|
+
"compile": "wireit",
|
|
87
|
+
"docs": "sf-docs",
|
|
88
|
+
"format": "wireit",
|
|
89
|
+
"lint": "wireit",
|
|
90
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
91
|
+
"prepack": "sf-prepack",
|
|
92
|
+
"test": "wireit",
|
|
93
|
+
"test:only": "wireit",
|
|
94
|
+
"version": "oclif readme"
|
|
95
|
+
},
|
|
96
|
+
"publishConfig": {
|
|
97
|
+
"access": "public"
|
|
98
|
+
},
|
|
99
|
+
"wireit": {
|
|
100
|
+
"build": {
|
|
101
|
+
"dependencies": [
|
|
102
|
+
"compile",
|
|
103
|
+
"lint"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"compile": {
|
|
107
|
+
"command": "tsc -p . --pretty --incremental",
|
|
108
|
+
"files": [
|
|
109
|
+
"src/**/*.ts",
|
|
110
|
+
"**/tsconfig.json",
|
|
111
|
+
"messages/**"
|
|
112
|
+
],
|
|
113
|
+
"output": [
|
|
114
|
+
"lib/**",
|
|
115
|
+
"*.tsbuildinfo"
|
|
116
|
+
],
|
|
117
|
+
"clean": "if-file-deleted"
|
|
118
|
+
},
|
|
119
|
+
"format": {
|
|
120
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
121
|
+
"files": [
|
|
122
|
+
"src/**/*.ts",
|
|
123
|
+
"test/**/*.ts",
|
|
124
|
+
"schemas/**/*.json",
|
|
125
|
+
"command-snapshot.json",
|
|
126
|
+
".prettier*"
|
|
127
|
+
],
|
|
128
|
+
"output": []
|
|
129
|
+
},
|
|
130
|
+
"lint": {
|
|
131
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
132
|
+
"files": [
|
|
133
|
+
"src/**/*.ts",
|
|
134
|
+
"test/**/*.ts",
|
|
135
|
+
"messages/**",
|
|
136
|
+
"**/.eslint*",
|
|
137
|
+
"**/tsconfig.json"
|
|
138
|
+
],
|
|
139
|
+
"output": []
|
|
140
|
+
},
|
|
141
|
+
"test:compile": {
|
|
142
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
143
|
+
"files": [
|
|
144
|
+
"test/**/*.ts",
|
|
145
|
+
"**/tsconfig.json"
|
|
146
|
+
],
|
|
147
|
+
"output": []
|
|
148
|
+
},
|
|
149
|
+
"test": {
|
|
150
|
+
"dependencies": [
|
|
151
|
+
"test:compile",
|
|
152
|
+
"test:only",
|
|
153
|
+
"lint"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"test:only": {
|
|
157
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
158
|
+
"env": {
|
|
159
|
+
"FORCE_COLOR": "2"
|
|
160
|
+
},
|
|
161
|
+
"files": [
|
|
162
|
+
"test/**/*.ts",
|
|
163
|
+
"src/**/*.ts",
|
|
164
|
+
"**/tsconfig.json",
|
|
165
|
+
".mocha*",
|
|
166
|
+
"!*.nut.ts",
|
|
167
|
+
".nycrc"
|
|
168
|
+
],
|
|
169
|
+
"output": []
|
|
170
|
+
},
|
|
171
|
+
"test:command-reference": {
|
|
172
|
+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
173
|
+
"files": [
|
|
174
|
+
"src/**/*.ts",
|
|
175
|
+
"messages/**",
|
|
176
|
+
"package.json"
|
|
177
|
+
],
|
|
178
|
+
"output": [
|
|
179
|
+
"tmp/root"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"test:deprecation-policy": {
|
|
183
|
+
"command": "\"./bin/dev\" snapshot:compare",
|
|
184
|
+
"files": [
|
|
185
|
+
"src/**/*.ts"
|
|
186
|
+
],
|
|
187
|
+
"output": [],
|
|
188
|
+
"dependencies": [
|
|
189
|
+
"compile"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"test:json-schema": {
|
|
193
|
+
"command": "\"./bin/dev\" schema:compare",
|
|
194
|
+
"files": [
|
|
195
|
+
"src/**/*.ts",
|
|
196
|
+
"schemas"
|
|
197
|
+
],
|
|
198
|
+
"output": []
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"author": "Raffaele Preziosi"
|
|
202
|
+
}
|