RuntimeLoggerAdapter class
Logging in memory LoggerAdapter.
Logging can be done in advance using rawData.
LoggerDatabase specified in database. Please use for testing purposes.
You can check the logs recorded at logList.
The log limit can be set with limit. The default value is 100
.
メモリ上でログを記録するLoggerAdapter。
rawDataを利用して予めログを記録しておくことができます。
databaseで指定されたLoggerDatabaseを利用することができます。 テスト用にお使いください。
logListで記録されたログを確認することができます。
limitでログの上限を設定可能です。初期値は100
です。
- Inheritance
-
- Object
- LoggerAdapter
- RuntimeLoggerAdapter
- Available Extensions
Constructors
-
RuntimeLoggerAdapter({Map<
DateTime, DynamicMap> rawData = const {}, LoggerDatabase? database, int limit = 100}) -
Logging in memory LoggerAdapter.
const
Properties
- database → LoggerDatabase
-
Designated database. Please use for testing purposes, etc.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int
-
Log limit.
final
-
rawData
→ Map<
DateTime, DynamicMap> -
Actual log data when used as a mock-up.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
logList(
) → Future< List< LogValue> > -
Get a list of logs recorded.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String name, {DynamicMap? parameters}) → Future< void> -
Execute the process of saving the log by passing
name
andparameters
, which is the name of the log.override -
toString(
) → String -
A string representation of this object.
inherited
-
trace(
String name) → LoggerTraceValue -
Create LoggerTraceValue by passing
name
, the name of the log.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
A common database throughout the application.
final