<?php
if(is_user_logged_in()){
$user = wp_get_current_user();
?>
<a href=""> <span> Log Out <small>Welcome <?php echo $user->user_login; ?> </small> </span> </a>
<?php } else {
?>
<a href=""> <span> Log in </span> </a>
<?php } ?>