Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Appenders and Loggers. #12852

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
055c406
Introduce Appenders and Loggers.
azasypkin Jul 12, 2017
b81577b
Wait for all appenders to close before shutting down `LoggerServer` t…
azasypkin Jul 15, 2017
37252a7
Inherit RollingFileAppender from FileAppender. Use proper context for…
azasypkin Jul 15, 2017
c98bd66
Centralize log string formatting.
azasypkin Jul 15, 2017
1b7ca82
Use constants instead of functions for config schema declarations.
azasypkin Jul 17, 2017
e1f66ab
Give appenders the way to format particular log records parts (contex…
azasypkin Jul 17, 2017
fa4ea1a
Remove RollingFileAppender from PR. Introduce Logging Layouts. Get ri…
azasypkin Jul 18, 2017
eab804d
Add unit tests.
azasypkin Jul 24, 2017
ef72c99
Replace `platform/logger` with `platform/logging`.
azasypkin Jul 24, 2017
cb23469
Use `as` type assertions consistently.
azasypkin Jul 24, 2017
3f4c0ff
Add more clarifying comments and several unit-test improvements.
azasypkin Jul 24, 2017
a693236
`LoggerFactory.get()` now accepts context parts as separate arguments.
azasypkin Jul 25, 2017
b000c36
Use `chalk` inside `PatternLayout`. Upgrade `chalk` to v2.0.1.
azasypkin Jul 25, 2017
898f4be
Refactor `MutableLoggerFactory` to remove code duplication.
azasypkin Jul 25, 2017
fa7afdc
Make `MutableLoggerFactory.updateConfig()` sync.
azasypkin Jul 25, 2017
9ae0528
Get initial version of logging README.md.
azasypkin Jul 25, 2017
8ecdfe4
Use `.` as logging context separator.
azasypkin Jul 27, 2017
151583e
Make JSDoc comments more concise. Add note about `off` log level into…
azasypkin Jul 28, 2017
86a7b46
Add a note about `appender additivity`.
azasypkin Jul 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,277 changes: 1,170 additions & 1,107 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"boom": "2.8.0",
"brace": "0.5.1",
"bunyan": "1.7.1",
"chalk": "1.1.3",
"chalk": "2.0.1",
"check-hash": "1.0.1",
"color": "1.0.3",
"commander": "2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@elastic/kbn-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export {
KibanaFunctionalPlugin,
KibanaPlugin
} from '../../../platform/server/plugins/types';
export { Logger } from '../../../platform/logger';
export { Logger } from '../../../platform/logging';
2 changes: 1 addition & 1 deletion platform/config/ConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Observable } from 'rxjs';
import { get, isEqual } from 'lodash';

import { Env } from './Env';
import { Logger, LoggerFactory } from '../logger';
import { Logger, LoggerFactory } from '../logging';
import * as schema from '../lib/schema';
import { ConfigWithSchema } from './ConfigWithSchema';

Expand Down
2 changes: 1 addition & 1 deletion platform/config/__tests__/ConfigService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BehaviorSubject } from 'rxjs';

import { ConfigService } from '../ConfigService';
import { Env } from '../Env';
import { logger } from '../../logger/__mocks__';
import { logger } from '../../logging/__mocks__';
import { Schema } from '../../types';
import * as schemaLib from '../../lib/schema';

Expand Down
20 changes: 0 additions & 20 deletions platform/logger/EventLogger/ConsoleLogger.ts

This file was deleted.

17 changes: 0 additions & 17 deletions platform/logger/EventLogger/Log.ts

This file was deleted.

27 changes: 0 additions & 27 deletions platform/logger/EventLogger/WinstonLogger.ts

This file was deleted.

13 changes: 0 additions & 13 deletions platform/logger/EventLogger/index.ts

This file was deleted.

47 changes: 0 additions & 47 deletions platform/logger/Level.ts

This file was deleted.

81 changes: 0 additions & 81 deletions platform/logger/LoggerAdapter.ts

This file was deleted.

65 changes: 0 additions & 65 deletions platform/logger/LoggerConfig.ts

This file was deleted.

85 changes: 0 additions & 85 deletions platform/logger/LoggerFactory.ts

This file was deleted.

Loading