LogSettings class abstract

Log settings for the server.

Inheritance

Constructors

LogSettings({required LogLevel logLevel, required bool logAllSessions, required bool logAllQueries, required bool logSlowSessions, required bool logStreamingSessionsContinuously, required bool logSlowQueries, required bool logFailedSessions, required bool logFailedQueries, required double slowSessionDuration, required double slowQueryDuration})
factory
LogSettings.fromJson(Map<String, dynamic> jsonSerialization, SerializationManager serializationManager)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
logAllQueries bool
True if all queries should be logged.
getter/setter pair
logAllSessions bool
True if all sessions should be logged.
getter/setter pair
logFailedQueries bool
True if all failed queries should be logged.
getter/setter pair
logFailedSessions bool
True if all failed sessions should be logged.
getter/setter pair
logLevel LogLevel
Log level. Everything above this level will be logged.
getter/setter pair
logSlowQueries bool
True if all slow queries should be logged.
getter/setter pair
logSlowSessions bool
True if all slow sessions should be logged.
getter/setter pair
logStreamingSessionsContinuously bool
True if streaming sessions should be logged continuously. If set to false, the logging will take place when the session is closed.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slowQueryDuration double
The duration in seconds for a query to be considered slow.
getter/setter pair
slowSessionDuration double
The duration in seconds for a session to be considered slow.
getter/setter pair

Methods

allToJson() Map<String, dynamic>
Returns a serialized JSON structure of the model which also includes fields used by the database.
override
copyWith({LogLevel? logLevel, bool? logAllSessions, bool? logAllQueries, bool? logSlowSessions, bool? logStreamingSessionsContinuously, bool? logSlowQueries, bool? logFailedSessions, bool? logFailedQueries, double? slowSessionDuration, double? slowQueryDuration}) LogSettings
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a serialized JSON structure of the model, ready to be sent through the API. This does not include fields that are marked as database only.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited