In MongoDB, the $log10 aggregation pipeline operator calculates the log base 10 of a number and returns the result as a double.
$log10 accepts any valid expression that resolves to a non-negative number.
The $log10 operator was introduced in MongoDB 3.2.