Skip to content

Commit

Permalink
feat(isDebugLogSampled): add support for isDebugLogSampled(); update …
Browse files Browse the repository at this point in the history
…README
  • Loading branch information
mikaelvesavuori committed Oct 22, 2022
1 parent 850d0b1 commit cd4901b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/entities/MikroLog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ export declare class MikroLog {
private static event;
private static context;
private static debugSamplingLevel;
private static isDebugLogSampled;
private constructor();
static start(input?: MikroLogInput): MikroLog;
static reset(): void;
static enrich(input: MikroLogInput): void;
setDebugSamplingRate(samplingPercent: number): number;
isDebugLogSampled(): boolean;
debug(message: Message, httpStatusCode?: HttpStatusCode): LogOutput;
info(message: Message, httpStatusCode?: HttpStatusCode): LogOutput;
log(message: Message, httpStatusCode?: HttpStatusCode): LogOutput;
Expand Down
8 changes: 7 additions & 1 deletion lib/entities/MikroLog.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/entities/MikroLog.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd4901b

Please sign in to comment.