This command prints to the console the level of your target. Use 'player.getlevel' to get your own character's level.
getlevel Target Command
getlevel
The above command would print to console the level of your current target.
player.getlevel
This command would print to the console the level of your own character, rather than your selected target.