Logging
When the Data Seeder runs, it will abide by GitLab’s overall logging level.
Change logging level
You can override the logging level by specifying the environment variable GITLAB_LOG_LEVEL
.
GITLAB_LOG_LEVEL=debug bundle exec rake "ee:gitlab:seed:data_seeder[beautiful_data.rb]"test
Available levels:
information
warn
error
debug
Logfile
The logfile can be found in log/data_seeder.log
Custom logging
Use the @logger
global variable to log your own custom logs.
@logger.info "The top-level namespace is: #{@group.name}"@logger.warn "This is a warning"@logger.error "This is an error"@logger.debug "This is for debugging"