Skip to content

how can I run APIs from golang terminal #2317

Answered by k9ert
isra270 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure i understand your issue. What do you mean by "Golang terminal" ? Logs are always coming out of stdout. That's a pretty standard way of dealing with logs.

Maybe you can explain what you want to achieve here from a more toplevel point of view?

Edit:
maybe i got it now. If you run kratos from the commandline, logs should come out od stdout. Should be the same in windows. Here is the most trivial example:

➜  kratos git:(83aedcb8) go run main.go serve 
WARN[2021-01-22T16:58:07+01:00] No config file was defined and no file was found in $HOME/.kratos.yaml  audience=application error=map[message:Config File ".kratos" Not Found in "[/home/kim]"] service_name=kratos service_version=
ER…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@isra270
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants