Ok, I have done some approximated calculation for you. Let's see if it makes sense. First, you are trying to calculate sum of logarithms
$\sum_{j = 1}^{L} \log j \approx n$
Let us exponentiate both sides
$\prod_{j = 1}^{L} j = e^n$
Let's take the $L$-th square root
$\sqrt[L]{\prod_{j = 1}^{L} j} = e^{n/L}$
Now lets approximate geometric mean on the left hand side with the arithmetic mean
$e^{n/L} \approx \frac{\sum_{j=1}^L j}{L} = \frac{L(L+1)}{2L} = \frac{L+1}{2}$
Taking the logarithm again, we arrive at
$n \approx L(\log(L+1)-\log 2) \approx L \log L$
What you are actually interested in is $L(n)$, as that approximates your complexity. However, this function is not really invertible. What one can say is that since $n(L)$ is slightly super-linear, then $L(n)$ will be slightly sub-linear, meaning
complexity $< O(n)$
Edit: To be more precise,
$L \approx O(W(e^n))$
where $W(x)$ is the Lambert W-function, namely, the function defined by $x = W e^W$. There is a logarithmic expansion for it, but it is not very nice. See below
Lambert W function aproximation
I do not believe the problem can be answered perfectly. One can take any converging series for Lambert W-function, arbitrarily truncate the series and insert the terms into the $O()$ notation. However, I am not sure how much intuition it gives about actual behaviour. Analysing the implicit definition is not worse IMHO