# OpenNebula Logging for developers

**URL:** <https://forum.opennebula.io/t/opennebula-logging-for-developers/5750>\
**Category:** Product Support\
**Created:** [February 26, 2018, 10:11am UTC](https://forum.opennebula.io/t/opennebula-logging-for-developers/5750 "2018-02-26T10:11:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quocbao](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/quocbao/32/5619_2.png) [@quocbao](https://forum.opennebula.io/u/quocbao)\
**Post date:** [February 26, 2018, 10:11am UTC](https://forum.opennebula.io/t/opennebula-logging-for-developers/5750/1 "2018-02-26T10:11:18Z")

</div>

Hi all,

I just install OpenNebula 5.4.1. I need to write an auth driver to integrate Sunstone with [WHMCS](https://www.whmcs.com/) Authentication API.

Here is the code (I just copy it from `remotes/auth/plain/authenticate`)

```
#!/usr/bin/env ruby

ONE_LOCATION=ENV["ONE_LOCATION"]

if !ONE_LOCATION
    RUBY_LIB_LOCATION="/usr/lib/one/ruby"
    ETC_LOCATION="/etc/one/"
else
    RUBY_LIB_LOCATION=ONE_LOCATION+"/lib/ruby"
    ETC_LOCATION=ONE_LOCATION+"/etc/"
end

$: << RUBY_LIB_LOCATION

require 'scripts_common'

user = ARGV[0]
pass = ARGV[1]
secret = ARGV[2]

OpenNebula.log_debug("Authenticating #{user}, with password #{pass} (#{secret})")
#OpenNebula.log_info("Authenticating #{user}, with password #{pass} (#{secret})")
#OpenNebula.log_error("Authenticating #{user}, with password #{pass} (#{secret})")

exit 0

```

When using this auth driver, I want the log to be displayed somewhere that I can see. I have checked `oned.log` but see nothing.

Many thanks.
