cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

Golang agent debug level

SOLVED
David.Boardman
Creator

Golang agent debug level

Is there a configuration parameter to enable verbose logging for the Golang agent ? 

 

David

By replying you agree to the Terms and Conditions of the AppDynamics Community.
Golang agent debug level
3 REPLIES 3
Ayush.Ghosh
AppDynamics Team

Hi David,

 

I found this parameters in the Golang documentation which you can use.

https://docs.appdynamics.com/display/PRO44/Go+Agent+SDK+Reference

 

Logging – Logging settings for the controller. This struct is defined as:

const (
    APPD_LOG_LEVEL_DEFAULT LogLevel = iota
    APPD_LOG_LEVEL_TRACE
    APPD_LOG_LEVEL_DEBUG
    APPD_LOG_LEVEL_INFO
    APPD_LOG_LEVEL_WARN
    APPD_LOG_LEVEL_ERROR
    APPD_LOG_LEVEL_FATAL
)
type LoggingConfig struct {
    BaseDir             string
    MinimumLevel        LogLevel
    MaxNumFiles         uint
    MaxFileSizeBytes    uint
}
David.Boardman
Creator

Code please.

 

^^^ in other words, can you provide a working Golang code example?

Sajna.Sreenivasan
AppDynamics Team

Hi David,

 

Have attached a simple code which created few BTs and logs complete trace info in the logs which reside in the default path.

Please note that this code is only for your reference.

 

Thanks,

Sajna Sreenivasan



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.