checkDomain
Checks a String for validity of use as a Logger.domain value. This provides a uniform standard for all Log implementations to rely on.
A valid domain is either null, or complies with the following parameters:
Is greater than or equal to
3characters in length.Is less than or equal to
32characters in length.Contains only the following:
Characters
0-9Characters
a-zSeparators
.,-,:Does not start or end with a separator character.
e.g. Invalid >>
.my.domaine.g. Invalid >>
my.domain.Contains at least
1separator character.e.g. Invalid >>
mydomainSeparator characters do not precede or follow another separator character.
e.g. Invalid >>
my.:domain
Return
The domain
Throws
IllegalArgumentException
If domain is invalid.