logarithmic complexity represented with loop?
A simple loop can have logarithmic complexity, e.g.
for (i = 1; i <= N; i *= 2)
...
As others have already answered, a triple nested loop will have cubic complexity.
Since cubic is O(n^3), it would be three nested loops.
Logarithmic is not so straightforward and usually requires a recursive relation. For example, MergeSort is O(n*log(n)) because it forms a recursion tree of height log(n) and each level requires an O(n) merging operation.