<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz" -->

---
title: Runtime Log Level Change using Golang & GoFr | daily.dev
description: Learn how to dynamically change the log level of your Golang application without restarting it using the GoFr framework. The process involves setting up a...
canonical: https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Runtime Log Level Change using Golang & GoFr | daily.dev
og:description: Learn how to dynamically change the log level of your Golang application without restarting it using the GoFr framework. The process involves setting up a...
og:url: https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz
og:image: https://api.daily.dev/og/posts/SMD5LndHz.png
og:image:alt: Runtime Log Level Change using Golang & GoFr
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Runtime Log Level Change using Golang & GoFr

**[Awesome Go](https://daily.dev/sources/awego)** · 4 min read · 21 upvotes · 0 comments

## Summary

Learn how to dynamically change the log level of your Golang application without restarting it using the GoFr framework. The process involves setting up a remote log level service endpoint that GoFr fetches periodically. This post also covers configurations, setting up a MySQL database, docker commands for MySQL, and the implementation of the log-level service in Golang, complete with code examples.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/aryanmehrotra/remote-runtime-log-level-change-using-golang-gofr-54d8>

---

Tags: [#devops](https://daily.dev/tags/devops), [#golang](https://daily.dev/tags/golang), [#logging](https://daily.dev/tags/logging), [#mysql](https://daily.dev/tags/mysql)

[View this post on daily.dev](https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Runtime Log Level Change using Golang & GoFr","url":"https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz"},"datePublished":"2024-07-25T21:03:13.296Z","dateModified":"2024-10-05T17:14:23.714Z","description":"Learn how to dynamically change the log level of your Golang application without restarting it using the GoFr framework. The process involves setting up a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/301e213e847338188937d271ee93fe75?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/301e213e847338188937d271ee93fe75?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Awesome Go","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Awesome Go","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/awego","url":"https://daily.dev/sources/awego"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/runtime-log-level-change-using-golang-gofr-smd5lndhz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":21},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devops,golang,logging,mysql","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awesome Go","item":"https://daily.dev/sources/awego"},{"@type":"ListItem","position":3,"name":"Runtime Log Level Change using Golang & GoFr"}]}
```

